Table of Contents

Class UnitConvertUtil

Namespace
Hi.Geom.UnitUtils
Assembly
HiMech.dll

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 PhysicsUnit

The PhysicsUnit value to convert.

Returns

string

The string representation of the unit, or the enum value's name if no string value is defined.