Vector2d.Normalize Method

Definition

Overloads

Normalize()

Scales the Vector2 to unit length.

Normalize(Vector2d)
Normalize(Vector2d, Vector2d)

Scale a vector to unit length

Normalize()

Scales the Vector2 to unit length.

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

Applies to

Normalize(Vector2d)

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

Parameters

vec
Vector2d

Returns

Applies to

Normalize(Vector2d, Vector2d)

Scale a vector to unit length

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

Parameters

vec
Vector2d

The input vector

result
Vector2d

The normalized vector

Applies to