Vector2.Normalize Vector2.Normalize Method

Definition

Overloads

Normalize() Normalize()

Scales the Vector2 to unit length.

Normalize(Vector2) Normalize(Vector2)
Normalize(Vector2, Vector2) Normalize(Vector2, Vector2)

Scale a vector to unit length

Normalize() Normalize()

Scales the Vector2 to unit length.

public void Normalize ();
member this.Normalize : unit -> unit

Normalize(Vector2) Normalize(Vector2)

public static OpenTK.Vector2 Normalize (OpenTK.Vector2 vec);
static member Normalize : OpenTK.Vector2 -> OpenTK.Vector2

Parameters

Returns

Normalize(Vector2, Vector2) Normalize(Vector2, Vector2)

Scale a vector to unit length

public static void Normalize (ref OpenTK.Vector2 vec, out OpenTK.Vector2 result);
static member Normalize :  *  -> unit

Parameters

vec
Vector2 Vector2

The input vector

result
Vector2 Vector2

The normalized vector

Applies to