Edit

Share via


Vector2.LengthSquared Property

Definition

Gets the square of the vector length (magnitude).

public float LengthSquared { get; }
member this.LengthSquared : single

Property Value

Remarks

This property avoids the costly square root operation required by the Length property. This makes it more suitable for comparisons. Length

Applies to

See also