Edit

Share via


Vector2.Normalize Method

Definition

Overloads

Normalize()

Scales the Vector2 to unit length.

Normalize(Vector2)
Normalize(Vector2, Vector2)

Scale a vector to unit length

Normalize()

Scales the Vector2 to unit length.

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

Applies to

Normalize(Vector2)

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

Parameters

vec
Vector2

Returns

Applies to

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

The input vector

result
Vector2

The normalized vector

Applies to