Edytuj

Udostępnij za pośrednictwem


Vector3d.Clamp Method

Definition

Overloads

Clamp(Vector3d, Vector3d, Vector3d)
Clamp(Vector3d, Vector3d, Vector3d, Vector3d)

Clamp a vector to the given minimum and maximum vectors

Clamp(Vector3d, Vector3d, Vector3d)

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

Parameters

vec
Vector3d
min
Vector3d
max
Vector3d

Returns

Applies to

Clamp(Vector3d, Vector3d, Vector3d, Vector3d)

Clamp a vector to the given minimum and maximum vectors

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

Parameters

vec
Vector3d

Input vector

min
Vector3d

Minimum vector

max
Vector3d

Maximum vector

result
Vector3d

The clamped vector

Applies to