Düzenle

Aracılığıyla paylaş


Vector2.Clamp Method

Definition

Overloads

Clamp(Vector2, Vector2, Vector2)
Clamp(Vector2, Vector2, Vector2, Vector2)

Clamp a vector to the given minimum and maximum vectors

Clamp(Vector2, Vector2, Vector2)

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

Parameters

vec
Vector2
min
Vector2
max
Vector2

Returns

Applies to

Clamp(Vector2, Vector2, Vector2, Vector2)

Clamp a vector to the given minimum and maximum vectors

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

Parameters

vec
Vector2

Input vector

min
Vector2

Minimum vector

max
Vector2

Maximum vector

result
Vector2

The clamped vector

Applies to