M_Rhino_RhinoMath_UnitScale - mcneel/rhinocommon-api-docs GitHub Wiki

RhinoMath.UnitScale Method

Computes the scale factor for changing the measurements unit systems.

Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static double UnitScale(
	UnitSystem from,
	UnitSystem to
)

VB

Public Shared Function UnitScale ( 
	from As UnitSystem,
	to As UnitSystem
) As Double

Parameters

 

from
Type: Rhino.UnitSystem
The system to convert from.
to
Type: Rhino.UnitSystem
The system to convert measurements into.

Return Value

Type: Double
A scale multiplier.

Version Information

Supported in: 5D58w

See Also

Reference

RhinoMath Class
Rhino Namespace

⚠️ **GitHub.com Fallback** ⚠️