Compartilhar via


Vector2.Clamp Método

Definição

Sobrecargas

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

Fixar um vetor aos vetores mínimos e máximos especificados

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

Parâmetros

vec
Vector2
min
Vector2
max
Vector2

Retornos

Aplica-se a

Clamp(Vector2, Vector2, Vector2, Vector2)

Fixar um vetor aos vetores mínimos e máximos especificados

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

Parâmetros

vec
Vector2

Vetor de entrada

min
Vector2

Vetor mínimo

max
Vector2

Vetor máximo

result
Vector2

O vetor fixado

Aplica-se a