MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LengthSquared

Method LengthSquared

Source/Engine/Core/Math/Vector2.h:136–139  ·  view source on GitHub ↗

Calculates the squared length of the vector.

Source from the content-addressed store, hash-verified

134
135 // Calculates the squared length of the vector.
136 T LengthSquared() const
137 {
138 return X * X + Y * Y;
139 }
140
141 // Calculates inverted length of the vector (1 / length).
142 T InvLength() const

Callers 15

InitSphereRasterizeMethod · 0.45
RenderMethod · 0.45
SetupLightMethod · 0.45
RenderMethod · 0.45
DrawEmitterCPUFunction · 0.45
CalculateTangentFrameMethod · 0.45
ModelData.Tool.cppFile · 0.45
RandomStream.csFile · 0.45
SolveTwoBoneIKMethod · 0.45
GetUnitVectorFunction · 0.45
GetRotationFromToMethod · 0.45
FindBetweenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected