Synced
Vector2.NormalizeSafe
Section titled “Vector2.NormalizeSafe”
- Returns a unit-length value while handling degenerate input according to the method contract.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Mathematics
Declaration
Section titled “Declaration”public static Inno.Core.Mathematics.Vector2 Inno.Core.Mathematics.Vector2.NormalizeSafe(Inno.Core.Mathematics.Vector2 value, float epsilon = 1E-06)Parameters
Section titled “Parameters”Parameter value: The concrete value read or transformed by this operation.
Parameter epsilon: The positive tolerance below which input is treated as degenerate.
Returns
Section titled “Returns”The validated vector2 that represents the completed operation.