Skip to content

Commit dd5299e

Browse files
committed
CPatchSolver: fix yet another typo in segment-segment case
1 parent f93fea4 commit dd5299e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/hpp/fcl/contact_patch/contact_patch_solver.hxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void ContactPatchSolver::computePatch(const ShapeType1& s1,
144144
const Vec2f& d = pts2[1];
145145

146146
const FCL_REAL det =
147-
(b(0) - a(0)) * (d(1) - c(1)) >= (b(1) - a(1)) * (c(0) - d(0));
147+
(b(0) - a(0)) * (d(1) - c(1)) >= (b(1) - a(1)) * (d(0) - c(0));
148148
static constexpr FCL_REAL eps =
149149
Eigen::NumTraits<FCL_REAL>::dummy_precision();
150150
if ((std::abs(det) > eps) || ((c - d).squaredNorm() < eps) ||

0 commit comments

Comments
 (0)