mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix naming consistency of helper function
Should be upper case to match the rest.
This commit is contained in:
parent
400fe00cea
commit
05b6e23a75
@ -546,8 +546,8 @@ void CAI_Utility::DrawNavMeshPolyBoundaries(const dtNavMesh* pMesh,
|
||||
if ((dtGetDetailTriEdgeFlags(t[3], n) & DT_DETAIL_EDGE_BOUNDARY) == 0)
|
||||
continue;
|
||||
|
||||
if (rdDistancePtLine2d(tv[n], v0, v1) < thr &&
|
||||
rdDistancePtLine2d(tv[m], v0, v1) < thr)
|
||||
if (rdDistancePtLine2D(tv[n], v0, v1) < thr &&
|
||||
rdDistancePtLine2D(tv[m], v0, v1) < thr)
|
||||
{
|
||||
v_RenderLine(Vector3D(tv[n][0], tv[n][1], tv[n][2]), Vector3D(tv[m][0], tv[m][1], tv[m][2]), col, bDepthBuffer);
|
||||
}
|
||||
|
@ -928,8 +928,8 @@ void Editor::connectTileTraverseLinks(dtMeshTile* const baseTile, const bool lin
|
||||
if ((dtGetDetailTriEdgeFlags(baseTri[3], m) & DT_DETAIL_EDGE_BOUNDARY) == 0)
|
||||
continue;
|
||||
|
||||
if (rdDistancePtLine2d(baseTriVerts[m], basePolySpos, basePolyEpos) >= detailEdgeAlignThresh ||
|
||||
rdDistancePtLine2d(baseTriVerts[l], basePolySpos, basePolyEpos) >= detailEdgeAlignThresh)
|
||||
if (rdDistancePtLine2D(baseTriVerts[m], basePolySpos, basePolyEpos) >= detailEdgeAlignThresh ||
|
||||
rdDistancePtLine2D(baseTriVerts[l], basePolySpos, basePolyEpos) >= detailEdgeAlignThresh)
|
||||
continue;
|
||||
|
||||
const float* baseDetailPolyEdgeSpos = baseTriVerts[m];
|
||||
@ -1043,8 +1043,8 @@ void Editor::connectTileTraverseLinks(dtMeshTile* const baseTile, const bool lin
|
||||
if ((dtGetDetailTriEdgeFlags(landTri[3], s) & DT_DETAIL_EDGE_BOUNDARY) == 0)
|
||||
continue;
|
||||
|
||||
if (rdDistancePtLine2d(landTriVerts[s], landPolySpos, landPolyEpos) >= detailEdgeAlignThresh ||
|
||||
rdDistancePtLine2d(landTriVerts[r], landPolySpos, landPolyEpos) >= detailEdgeAlignThresh)
|
||||
if (rdDistancePtLine2D(landTriVerts[s], landPolySpos, landPolyEpos) >= detailEdgeAlignThresh ||
|
||||
rdDistancePtLine2D(landTriVerts[r], landPolySpos, landPolyEpos) >= detailEdgeAlignThresh)
|
||||
continue;
|
||||
|
||||
const float* landDetailPolyEdgeSpos = landTriVerts[s];
|
||||
|
@ -210,8 +210,8 @@ static void drawPolyBoundaries(duDebugDraw* dd, const dtMeshTile* tile,
|
||||
if ((dtGetDetailTriEdgeFlags(t[3], n) & DT_DETAIL_EDGE_BOUNDARY) == 0)
|
||||
continue;
|
||||
|
||||
if (rdDistancePtLine2d(tv[n],v0,v1) < thr &&
|
||||
rdDistancePtLine2d(tv[m],v0,v1) < thr)
|
||||
if (rdDistancePtLine2D(tv[n],v0,v1) < thr &&
|
||||
rdDistancePtLine2D(tv[m],v0,v1) < thr)
|
||||
{
|
||||
dd->vertex(tv[n], c);
|
||||
dd->vertex(tv[m], c);
|
||||
|
@ -473,7 +473,7 @@ bool rdIntersectSegSeg2D(const float* ap, const float* aq,
|
||||
const float* bp, const float* bq,
|
||||
float& s, float& t);
|
||||
|
||||
float rdDistancePtLine2d(const float* pt, const float* p, const float* q);
|
||||
float rdDistancePtLine2D(const float* pt, const float* p, const float* q);
|
||||
|
||||
/// Derives the normal of an edge
|
||||
/// @param[in] dir The direction of the edge. [(x, y, z)]
|
||||
|
@ -395,7 +395,7 @@ bool rdIntersectSegSeg2D(const float* ap, const float* aq,
|
||||
return true;
|
||||
}
|
||||
|
||||
float rdDistancePtLine2d(const float* pt, const float* p, const float* q)
|
||||
float rdDistancePtLine2D(const float* pt, const float* p, const float* q)
|
||||
{
|
||||
float pqx = q[0] - p[0];
|
||||
float pqy = q[1] - p[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user