FarFromLine2D effectively matching

This commit is contained in:
Dethrace Labs 2025-10-09 16:50:04 +13:00
parent ca850f3888
commit a0e679e06f
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ int FarFromLine2D(br_vector3* pPt, br_vector3* pL1, br_vector3* pL2) {
to_pt.v[0] = BR_SUB(pPt->v[0], pL2->v[0]);
to_pt.v[1] = BR_SUB(pPt->v[2], pL2->v[2]);
cross = -(line.v[0]) * to_pt.v[1] + to_pt.v[0] * line.v[1];
cross = (-line.v[0]) * to_pt.v[1] + to_pt.v[0] * line.v[1];
line_len = BrVector2Length(&line);
if (fabs(cross) > line_len * 0.05f) {
return 1;