We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51bded9 + 5c1ab2a commit 9ff71d9Copy full SHA for 9ff71d9
irteus/test/geo.l
@@ -61,6 +61,16 @@
61
bottom-frame
62
))
63
64
+(deftest test-face-distance
65
+ (let* ((f
66
+ (instance face :init :vertices
67
+ '(#f(100 100 0) #f(-100 100 0) #f(-100 -100 0) #f(100 -100 0))))
68
+ )
69
+ (assert (eps= (send f :distance (float-vector 0 0 100)) 100.0))
70
+ (assert (eps= (send f :distance (float-vector 200 0 0)) 100.0))
71
+ (assert (eps= (send f :distance (float-vector 200 0 100)) (norm #f(100 100))))
72
+ ))
73
+
74
(run-all-tests)
75
(exit)
76
0 commit comments