RhinoMathUnitScale Method (UnitSystem, Double, UnitSystem, Double) |
Computes the scale factor for changing the measurements unit systems.
Namespace:
Rhino
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax public static double UnitScale(
UnitSystem from,
double fromMetersPerUnit,
UnitSystem to,
double toMetersPerUnit
)
Public Shared Function UnitScale (
from As UnitSystem,
fromMetersPerUnit As Double,
to As UnitSystem,
toMetersPerUnit As Double
) As Double
Parameters
- from
- Type: RhinoUnitSystem
The system to convert from. - fromMetersPerUnit
- Type: SystemDouble
For custom units, specify the meters per unit. - to
- Type: RhinoUnitSystem
The system to convert measurements into. - toMetersPerUnit
- Type: SystemDouble
For custom units, specify the meters per unit.
Return Value
Type:
DoubleA scale multiplier.
See Also