Skip to content

Commit 09262c7

Browse files
committed
minor changes to mpr (remove two neps)
1 parent 3dc2b19 commit 09262c7

File tree

1 file changed

+2
-2
lines changed
  • src/contactDetection/ContactDetectionMPR

1 file changed

+2
-2
lines changed

src/contactDetection/ContactDetectionMPR/mpr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function checkIfShapesArePlanar(r0::SupportPoint,r1::SupportPoint,r2::SupportPoi
9292
n3 = cross(r1.p-r0.p, r2.p-r0.p) # |n3| > 0 guaranteed, due to construction
9393
end
9494

95-
if dot(n3,r0.p) >= neps
95+
if dot(n3,r0.p) >= 0.0
9696
n3 = -n3
9797
end
9898

@@ -170,7 +170,7 @@ function constructR4(r0::SupportPoint,r1::SupportPoint,r2::SupportPoint,r3::Supp
170170
end
171171
n4 = cross(r2.p-r1.p, r3.p-r1.p) # |n4| > 0 guaranteed, due to construction
172172
end
173-
if dot(n4,r0.p) >= neps
173+
if dot(n4,r0.p) >= 0.0
174174
n4 = -n4
175175
end
176176
r4 = getSupportPoint(shapeA, shapeB, Basics.normalizeVector(n4), scale=scale)

0 commit comments

Comments
 (0)