mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 11:33:48 +00:00
Merge pull request #2146 from Azaezel/specializationShenanigans
changes find, swap, for_each, and delete_pointer from global to t3d namespace
This commit is contained in:
commit
bc1b506205
20 changed files with 70 additions and 69 deletions
|
|
@ -228,7 +228,7 @@ void PolyhedronBoxIntersector< Polyhedron >::_preprocess( const MatrixF& objToWo
|
|||
Point2F p = _project( i, v2 ); // Second point on line.
|
||||
|
||||
if( frontFace != 0 )
|
||||
swap( p, q );
|
||||
T3D::swap( p, q );
|
||||
|
||||
Point2F normal( - ( p.y - q.y ), p.x - q.x );
|
||||
normal.normalize();
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ U32 PlaneSet< T >::clipPolygon( const Point3F* inVertices, U32 inNumVertices, Po
|
|||
// Make the output of the last iteration the
|
||||
// input of this iteration.
|
||||
|
||||
swap( tempPolygon, clippedPolygon );
|
||||
T3D::swap( tempPolygon, clippedPolygon );
|
||||
numTempPolygonVertices = numClippedPolygonVertices;
|
||||
|
||||
if( maxOutVertices < numTempPolygonVertices + 1 )
|
||||
|
|
|
|||
|
|
@ -1706,7 +1706,7 @@ bool clipFrustumByPolygon( const Point3F* points, U32 numPoints, const RectI& vi
|
|||
// Make the output of the last iteration the
|
||||
// input of this iteration.
|
||||
|
||||
swap( tempPolygon, clippedPolygon );
|
||||
T3D::swap( tempPolygon, clippedPolygon );
|
||||
numTempPolygonVertices = numClippedPolygonVertices;
|
||||
|
||||
// Clip our current remainder of the original polygon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue