Share via


SCNVector3.LengthSquared Property

Definition

Gets the square of the vector length (magnitude).

public float LengthSquared { get; }
public System.Runtime.InteropServices.NFloat LengthSquared { get; }
member this.LengthSquared : single
member this.LengthSquared : System.Runtime.InteropServices.NFloat

Property Value

Remarks

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

Applies to

See also