Edit

Share via


Vector4.Round Method

Definition

Overloads

Round(Vector4)

Rounds each element in a vector to the nearest integer using the default rounding mode (ToEven).

Round(Vector4, MidpointRounding)

Round(Vector4)

Source:
Vector4.cs

Rounds each element in a vector to the nearest integer using the default rounding mode (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

Parameters

vector
Vector4

The vector to round.

Returns

The result of rounding each element in vector to the nearest integer using the default rounding mode.

Applies to

Round(Vector4, MidpointRounding)

Source:
Vector4.cs
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

Parameters

vector
Vector4

Returns

Applies to