We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5b4ab commit 0d9257fCopy full SHA for 0d9257f
TeXmacs/progs/graphics/graphics-markup.scm
@@ -88,15 +88,15 @@
88
(q (if (tm-point? Q) (tree->stree Q) p))
89
(r (points-distance c p))
90
(r1 (points-distance c q))
91
- (x (if (equal? r 0.0)
+ (x (if (zero? r)
92
c
93
- (if (equal? r1 0.0)
+ (if (zero? r1)
94
p
95
(points-add (point-times (point-get-unit (points-sub q c)) r) c))))
96
(mid-p-x (points-mid p x))
97
(vec-c-p (points-sub p c))
98
(vec-c-q (points-sub q c))
99
- (m (if (or (equal? r 0.0) (equal? r1 0.0))
+ (m (if (or (zero? r) (zero? r1))
100
x
101
(if (clockwise (points-cross-product-k vec-c-p vec-c-q) 0)
102
(points-add (point-times (point-get-unit (points-sub mid-p-x c)) (- r)) c)
0 commit comments