To

Length.To method

Converts the length to the given unit, if possible. If the current or given unit is relative, then an exception will be thrown.

public float To(Unit unit)
Parameter Type Description
unit Unit The unit to convert to.

Return Value

The value in the given unit of the current length.

See Also