Vector4.Round Metod

Definition

Överlagringar

Name Description
Round(Vector4)

Avrundar varje element i en vektor till närmaste heltal med standard avrundningsläget (ToEven).

Round(Vector4, MidpointRounding)

Avrundar varje element i en vektor till närmaste heltal med det angivna avrundningsläget.

Round(Vector4)

Källa:
Vector4.cs
Källa:
Vector4.cs
Källa:
Vector4.cs

Avrundar varje element i en vektor till närmaste heltal med standard avrundningsläget (ToEven).

public:
 static System::Numerics::Vector4 Round(System::Numerics::Vector4 vector);
public static System.Numerics.Vector4 Round(System.Numerics.Vector4 vector);
static member Round : System.Numerics.Vector4 -> System.Numerics.Vector4
Public Shared Function Round (vector As Vector4) As Vector4

Parametrar

vector
Vector4

Vektorn som ska avrundas.

Returer

Resultatet av avrundning av varje element i vector till närmaste heltal med standard avrundningsläget.

Gäller för

Round(Vector4, MidpointRounding)

Källa:
Vector4.cs
Källa:
Vector4.cs
Källa:
Vector4.cs

Avrundar varje element i en vektor till närmaste heltal med det angivna avrundningsläget.

public:
 static System::Numerics::Vector4 Round(System::Numerics::Vector4 vector, MidpointRounding mode);
public static System.Numerics.Vector4 Round(System.Numerics.Vector4 vector, MidpointRounding mode);
static member Round : System.Numerics.Vector4 * MidpointRounding -> System.Numerics.Vector4
Public Shared Function Round (vector As Vector4, mode As MidpointRounding) As Vector4

Parametrar

vector
Vector4

Vektorn som ska avrundas.

mode
MidpointRounding

Läget under vilket vector ska avrundas.

Returer

Resultatet av avrundning av varje element i vector till närmaste heltal med hjälp av mode.

Gäller för