Click or drag to resize

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
)

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: Double
A scale multiplier.
See Also