Condividi tramite


Vector2.Clamp Metodo

Definizione

Overload

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

Blocca un vettore per i vettori minimo e massimo specificati

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

Parametri

vec
Vector2
min
Vector2
max
Vector2

Restituisce

Si applica a

Clamp(Vector2, Vector2, Vector2, Vector2)

Blocca un vettore per i vettori minimo e massimo specificati

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

Parametri

vec
Vector2

Vettore di input

min
Vector2

Vettore minimo

max
Vector2

Vettore massimo

result
Vector2

Vettore bloccato

Si applica a