File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ bool Hatch::Segment::isStraightLineConstantMajor() const
203
203
p1 = originalBezier->P1 [major],
204
204
p2 = originalBezier->P2 [major];
205
205
// assert(p0 <= p1 && p1 <= p2); (PRECISION ISSUES ARISE ONCE MORE)
206
- return abs (p1 - p0) <= core::exp2 (-24 ) && abs (p2 - p0) <= exp (-24 );
206
+ return abs (p1 - p0) <= core::exp2 (-24.0 ) && abs (p2 - p0) <= exp (-24 );
207
207
}
208
208
209
209
std::array<double , 2 > Hatch::Segment::intersect (const Segment& other) const
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ float64_t2 ExplicitCurve::computeTangent(float64_t x) const
66
66
{
67
67
const float64_t deriv = derivative (x);
68
68
float64_t2 v = float64_t2 (1.0 , deriv);
69
- if (core ::isinf (deriv))
69
+ if (std ::isinf (deriv))
70
70
v = float64_t2 (0.0 , 1.0 );
71
71
return v;
72
72
}
You can’t perform that action at this time.
0 commit comments