Class UnitConvertUtil
Provides utility methods for converting between different physical units and their string representations.
public static class UnitConvertUtil
- Inheritance
-
UnitConvertUtil
- Inherited Members
Methods
ToUnitString(PhysicsUnit)
Converts a PhysicsUnit enum value to its string representation.
public static string ToUnitString(this PhysicsUnit src)
Parameters
src
PhysicsUnitThe PhysicsUnit value to convert.
Returns
- string
The string representation of the unit, or the enum value's name if no string value is defined.