Rounds a vector by rounding its single-precision floating-point values, separately, to a specified number of fractional digits using the specified rounding convention.
Parameters
Parameter
Type
Description
digits
float
The number of fractional digits in the return value.
mode
MidpointRounding
One of the enumeration values that specifies which rounding strategy to use.
Benefits
This method used to exist in X10D but was removed for some reason.
Type to extend
System.Numerics.Vector2, System.Numerics.Vector3, System.Numerics.Vector4, UnityEngine.Vector2, UnityEngine.Vector3, UnityEngine.Vector4
Signature
Summary
Parameters
float
MidpointRounding
Benefits
This method used to exist in X10D but was removed for some reason.
Drawbacks
n/a
Implementation Example
Code of Conduct