Bagikan melalui


Vector2.Clamp(Vector2, Vector2, Vector2) Metode

Definisi

Membatasi vektor antara nilai minimum dan maksimum.

public:
 static System::Numerics::Vector2 Clamp(System::Numerics::Vector2 value1, System::Numerics::Vector2 min, System::Numerics::Vector2 max);
public static System.Numerics.Vector2 Clamp (System.Numerics.Vector2 value1, System.Numerics.Vector2 min, System.Numerics.Vector2 max);
static member Clamp : System.Numerics.Vector2 * System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function Clamp (value1 As Vector2, min As Vector2, max As Vector2) As Vector2

Parameter

value1
Vector2

Vektor yang akan dibatasi.

min
Vector2

Nilai minimum.

max
Vector2

Nilai maksimum.

Mengembalikan

Vektor terbatas.

Berlaku untuk