Class SensorUnitConversion
Provides unit conversion utilities for sensor measurements.
Inherited Members
Namespace: Global Namespace
Assembly: Unity.SimulationPro.Sensors.dll
Syntax
public static class SensorUnitConversion
Methods
ConvertAngleUnit(AngleUnit, float)
Converts an angle from its current unit to the specified target unit.
Declaration
public static float ConvertAngleUnit(SensorUnitConversion.AngleUnit newUnit, float angle)
Parameters
| Type | Name | Description |
|---|---|---|
| SensorUnitConversion.AngleUnit | newUnit | The target angle unit. |
| float | angle | The angle value to convert, in the opposite unit of |
Returns
| Type | Description |
|---|---|
| float | The converted angle in |