Skip to content

Commit 0d9257f

Browse files
committed
update per comment
1 parent df5b4ab commit 0d9257f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TeXmacs/progs/graphics/graphics-markup.scm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@
8888
(q (if (tm-point? Q) (tree->stree Q) p))
8989
(r (points-distance c p))
9090
(r1 (points-distance c q))
91-
(x (if (equal? r 0.0)
91+
(x (if (zero? r)
9292
c
93-
(if (equal? r1 0.0)
93+
(if (zero? r1)
9494
p
9595
(points-add (point-times (point-get-unit (points-sub q c)) r) c))))
9696
(mid-p-x (points-mid p x))
9797
(vec-c-p (points-sub p c))
9898
(vec-c-q (points-sub q c))
99-
(m (if (or (equal? r 0.0) (equal? r1 0.0))
99+
(m (if (or (zero? r) (zero? r1))
100100
x
101101
(if (clockwise (points-cross-product-k vec-c-p vec-c-q) 0)
102102
(points-add (point-times (point-get-unit (points-sub mid-p-x c)) (- r)) c)

0 commit comments

Comments
 (0)