From f6bc3ccc08f8e57bb68cd143c9a4106f99605cf0 Mon Sep 17 00:00:00 2001 From: lilkeet Date: Sat, 27 Jul 2024 00:48:34 -0500 Subject: [PATCH] remove runnable examples per comment in pr --- src/vmath.nim | 8 -------- 1 file changed, 8 deletions(-) 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)