Description
The GradiansToRadians
method is a static extension method in the MathX
class that converts an angle from gradians to radians. Gradians are a unit of angular measure where a full circle is divided into 400 gradians, as opposed to 360 degrees or 2π radians.
Usage
To use the GradiansToRadians
method, pass a single float
value representing the angle in gradians. The method will return the equivalent angle in radians.
Example
// Example usage of GradiansToRadians
float angleInGradians = 200.0f;
float angleInRadians = MathX.GradiansToRadians(angleInGradians);
// angleInRadians now holds the value of the angle in radians