Edytuj

Udostępnij za pośrednictwem


Vector4.Clamp Method

Definition

Overloads

Clamp(Vector4, Vector4, Vector4)
Clamp(Vector4, Vector4, Vector4, Vector4)

Clamp a vector to the given minimum and maximum vectors

Clamp(Vector4, Vector4, Vector4)

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

Parameters

vec
Vector4
min
Vector4
max
Vector4

Returns

Applies to

Clamp(Vector4, Vector4, Vector4, Vector4)

Clamp a vector to the given minimum and maximum vectors

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

Parameters

vec
Vector4

Input vector

min
Vector4

Minimum vector

max
Vector4

Maximum vector

result
Vector4

The clamped vector

Applies to