MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addPoint

Method addPoint

Engine/source/collision/vertexPolyList.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54U32 VertexPolyList::addPoint( const Point3F &p )
55{
56 // Apply the transform
57 Point3F tp = p * mScale;
58 mMatrix.mulP( tp );
59
60 Vector<Point3F>::iterator iter = mVertexList.begin();
61 for ( ; iter != mVertexList.end(); iter++ )
62 {
63 if ( iter->equal( tp ) )
64 return iter - mVertexList.begin();
65 }
66
67 mVertexList.push_back( tp );
68 return mVertexList.size() - 1;
69}

Callers 1

getPolyListMethod · 0.45

Calls 6

mulPMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
equalMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected