static float GradiansToDegrees( float grad )

robot_2Generated
code_blocksInput

Description

The GradiansToDegrees method is a static extension method in the MathX class that converts an angle measured in gradians to degrees. This method is useful when working with different angle measurement systems and needing to convert between them.

Usage

To use the GradiansToDegrees method, pass a single float value representing the angle in gradians. The method will return a float value representing the equivalent angle in degrees.

Example

// Example of converting gradians to degrees
float gradians = 200.0f;
float degrees = MathX.GradiansToDegrees(gradians);
// degrees now holds the value 180.0f