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

Method getOtherVerts

Engine/source/math/util/decomposePoly.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58twoIndices decompTri::getOtherVerts(U8 idx)
59{
60 if(idx == mVertIdx[0])
61 return twoIndices(mVertIdx[1], mVertIdx[2]);
62
63 if(idx == mVertIdx[1])
64 return twoIndices(mVertIdx[0], mVertIdx[2]);
65
66 if(idx == mVertIdx[2])
67 return twoIndices(mVertIdx[0], mVertIdx[1]);
68
69 return twoIndices(0,0);
70}
71
72// decompPoly Methods
73

Callers 1

decomposeMethod · 0.80

Calls 1

twoIndicesClass · 0.85

Tested by

no test coverage detected