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

Function mNormalize

Engine/source/math/mPoint3.h:1039–1044  ·  view source on GitHub ↗

Returns the vector normalized.

Source from the content-addressed store, hash-verified

1037
1038/// Returns the vector normalized.
1039inline Point3F mNormalize( const Point3F &vec )
1040{
1041 Point3F out( vec );
1042 out.normalize();
1043 return out;
1044}
1045
1046/// Returns true if the point is NaN.
1047inline bool mIsNaN( const Point3F &p )

Callers 1

setDirectionMethod · 0.85

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected