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

Function LineNormal

trinity/Tr2DebugRenderer.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Vector2 LineNormal( const Vector2& p0, const Vector2& p1 )
33{
34 Vector2 n0( p1 - p0 );
35 return Vector2( XMVector2Normalize( Vector2( -n0.y, n0.x ) ) );
36}
37
38uint32_t GetVertexDeclarationHandle( Tr2RenderContext& renderContext )
39{

Callers 3

DrawArrowMethod · 0.85
DrawDoubleArrowMethod · 0.85
DrawSphereArrowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected