Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fix order-of-operation bug in triangle sail distance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Sep 22, 2023
1 parent 7c8f5cf commit 1b00903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/rigging/src/sailone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2067,6 +2067,6 @@ float SAILONE::GetDistanceFromPointTo3Point(const CVECTOR &v, const CVECTOR &vB1
const CVECTOR vN = !((vB1 - vB2) ^ (vB3 - vB2));
const float fD = -(vN | vB2);

const float f = v | vN + fD;
const float f = (v | vN) + fD;
return f;
}

0 comments on commit 1b00903

Please sign in to comment.