mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: deduplicate epsilon constant
Value was identical to RD_EPS.
This commit is contained in:
parent
2745f8b27c
commit
a229662a8e
@ -125,8 +125,6 @@ bool rdIntersectSegmentPoly2D(const float* p0, const float* p1,
|
||||
float& tmin, float& tmax,
|
||||
int& segMin, int& segMax)
|
||||
{
|
||||
static const float EPS = 0.000001f;
|
||||
|
||||
tmin = 0;
|
||||
tmax = 1;
|
||||
segMin = -1;
|
||||
@ -142,7 +140,7 @@ bool rdIntersectSegmentPoly2D(const float* p0, const float* p1,
|
||||
rdVsub(diff, p0, &verts[j*3]);
|
||||
const float n = rdVperp2D(edge, diff);
|
||||
const float d = rdVperp2D(dir, edge);
|
||||
if (rdMathFabsf(d) < EPS)
|
||||
if (rdMathFabsf(d) < RD_EPS)
|
||||
{
|
||||
// S is nearly parallel to this edge
|
||||
if (n < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user