TunnelSortEntry(Mesh *pMesh, int nIndex, const Vector3 &eye)
Key a mesh by the squared distance from eye to the midpoint of its first two vertices.
Definition tunnelsortentry.h:29
Mesh * mMesh
Definition tunnelsortentry.h:44
int mIndex
Definition tunnelsortentry.h:45
float mDistanceSq
Definition tunnelsortentry.h:43
void Add(const Vector2 &a, const Vector2 &b, Vector2 &out)
Add two two-component vectors.
void Vec3Scale(const float *pSrc, float flScale, float *pOut)
Multiply a three-component vector by a scalar.