Edit

Share via


Vector3.Clamp Method

Definition

Overloads

Clamp(Vector3, Vector3, Vector3)
Clamp(Vector3, Vector3, Vector3, Vector3)

Clamp a vector to the given minimum and maximum vectors

Clamp(Vector3, Vector3, Vector3)

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

Parameters

vec
Vector3
min
Vector3
max
Vector3

Returns

Applies to

Clamp(Vector3, Vector3, Vector3, Vector3)

Clamp a vector to the given minimum and maximum vectors

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

Parameters

vec
Vector3

Input vector

min
Vector3

Minimum vector

max
Vector3

Maximum vector

result
Vector3

The clamped vector

Applies to