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

Fix order-of-operation bug in triangle sail distance calculation #507

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}