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

Method IsNormalized

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

Gets a value indicting whether this instance is normalized.

Source from the content-addressed store, hash-verified

104public:
105 // Gets a value indicting whether this instance is normalized.
106 bool IsNormalized() const
107 {
108 return Math::Abs((X * X + Y * Y) - 1.0f) < 1e-4f;
109 }
110
111 // Gets a value indicting whether this vector is zero.
112 bool IsZero() const

Callers 15

RayCastMethod · 0.45
FromDirectionMethod · 0.45
RayFunction · 0.45
RayCastMethod · 0.45
RayCastAllMethod · 0.45
BoxCastMethod · 0.45
BoxCastAllMethod · 0.45
SphereCastMethod · 0.45
SphereCastAllMethod · 0.45
CapsuleCastMethod · 0.45
CapsuleCastAllMethod · 0.45
ConvexCastMethod · 0.45

Calls 1

AbsFunction · 0.70

Tested by

no test coverage detected