Skip to content

Commit 0f0d7bd

Browse files
committed
[62.CAD] small fixes
1 parent 912016e commit 0f0d7bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

62_CAD/Hatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ bool Hatch::Segment::isStraightLineConstantMajor() const
203203
p1 = originalBezier->P1[major],
204204
p2 = originalBezier->P2[major];
205205
//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);
207207
}
208208

209209
std::array<double, 2> Hatch::Segment::intersect(const Segment& other) const

62_CAD/curves.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ float64_t2 ExplicitCurve::computeTangent(float64_t x) const
6666
{
6767
const float64_t deriv = derivative(x);
6868
float64_t2 v = float64_t2(1.0, deriv);
69-
if (core::isinf(deriv))
69+
if (std::isinf(deriv))
7070
v = float64_t2(0.0, 1.0);
7171
return v;
7272
}

0 commit comments

Comments
 (0)