diff --git a/src/vmath.nim b/src/vmath.nim index 1ffe55a..ed3af08 100644 --- a/src/vmath.nim +++ b/src/vmath.nim @@ -1575,14 +1575,6 @@ proc angle*[T](a: GVec2[T]): T = proc angle*[T; S: GVec2[T]|GVec3[T]](a, b: S): T = ## Angle between 2 Vec2 or Vec3. - runnableExamples: - assert angle(vec2(0.0, 1.0), vec2(1.0, 0.0)).toDegrees() == 90.0 - assert angle(vec2(0.0, 1.0), vec2(-1.0, 0.0)).toDegrees() == 90.0 - assert angle(vec2(0.0, 1.0), vec2(0.0, -1.0)).toDegrees() == 180.0 - - assert angle(vec3(0.0, 1.0, 0.0), vec3(1.0, 0.0, 0.0)).toDegrees() == 90.0 - assert angle(vec3(0.0, 1.0, 0.0), vec3(-1.0, 0.0, 0.0)).toDegrees() == 90.0 - assert angle(vec3(0.0, 1.0, 0.0), vec3(0.0, -1.0, 0.0)).toDegrees() == 180.0 var dot = dot(a, b) dot = dot / (a.length * b.length) arccos(dot)