Edit

Share via


Vector2d.Clamp Method

Definition

Overloads

Clamp(Vector2d, Vector2d, Vector2d)
Clamp(Vector2d, Vector2d, Vector2d, Vector2d)

Clamp a vector to the given minimum and maximum vectors

Clamp(Vector2d, Vector2d, Vector2d)

public static OpenTK.Vector2d Clamp (OpenTK.Vector2d vec, OpenTK.Vector2d min, OpenTK.Vector2d max);
static member Clamp : OpenTK.Vector2d * OpenTK.Vector2d * OpenTK.Vector2d -> OpenTK.Vector2d

Parameters

vec
Vector2d
min
Vector2d
max
Vector2d

Returns

Applies to

Clamp(Vector2d, Vector2d, Vector2d, Vector2d)

Clamp a vector to the given minimum and maximum vectors

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

Parameters

vec
Vector2d

Input vector

min
Vector2d

Minimum vector

max
Vector2d

Maximum vector

result
Vector2d

The clamped vector

Applies to