Vector2.Round Metod

Definition

Överlagringar

Name Description
Round(Vector2)

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

Round(Vector2, MidpointRounding)

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

Round(Vector2)

Källa:
Vector2.cs
Källa:
Vector2.cs
Källa:
Vector2.cs

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

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

Parametrar

vector
Vector2

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

Källa:
Vector2.cs
Källa:
Vector2.cs
Källa:
Vector2.cs

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

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

Parametrar

vector
Vector2

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