MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsLocatorFacingPosition

Function IsLocatorFacingPosition

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124namespace
125{
126bool IsLocatorFacingPosition( const Vector3& locatorDir, const Vector3& posInObjectSpace )
127{
128 auto lengthOfPos = LengthSq( posInObjectSpace );
129 auto lengthOfMovedPos = LengthSq( posInObjectSpace - locatorDir );
130
131 return lengthOfMovedPos < lengthOfPos;
132}
133}
134
135

Callers 2

GetGoodLocatorIndexMethod · 0.85

Calls 1

LengthSqFunction · 0.85

Tested by

no test coverage detected