FarFromLine2D effectively matching
This commit is contained in:
parent
ca850f3888
commit
a0e679e06f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue