remove runnable examples per comment in pr

This commit is contained in:
lilkeet 2024-07-27 00:48:34 -05:00
parent 3d42a8ed2a
commit f6bc3ccc08

View file

@ -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)