Vector3.Round Metod

Definition

Överlagringar

Name Description
Round(Vector3)

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

Round(Vector3, MidpointRounding)

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

Round(Vector3)

Källa:
Vector3.cs
Källa:
Vector3.cs
Källa:
Vector3.cs

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

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

Parametrar

vector
Vector3

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(Vector3, MidpointRounding)

Källa:
Vector3.cs
Källa:
Vector3.cs
Källa:
Vector3.cs

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

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

Parametrar

vector
Vector3

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