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

Method Length

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

Calculates the length of the vector.

Source from the content-addressed store, hash-verified

128
129 // Calculates the length of the vector.
130 T Length() const
131 {
132 return Math::Sqrt(X * X + Y * Y);
133 }
134
135 // Calculates the squared length of the vector.
136 T LengthSquared() const

Callers 11

LocalToWorldMethod · 0.45
ClosestPointPointLineMethod · 0.45
RayIntersectsRayMethod · 0.45
MergeMethod · 0.45
NormalizeScaleMethod · 0.45
GetSizeMethod · 0.45
ContainsMethod · 0.45
NormalizeScaleMethod · 0.45
TriangleAreaMethod · 0.45
FromHexMethod · 0.45
NormalizeMethod · 0.45

Calls 1

SqrtFunction · 0.70

Tested by

no test coverage detected