Method UnitConvertToIncrements
UnitConvertToIncrements(UnitType, double)
Converts a value given in units to the same value expressed in the unit increments.
Declaration
public static int UnitConvertToIncrements(Appli.UnitType unit, double valueInUnits)
Parameters
| Type | Name | Description |
|---|---|---|
| Appli.UnitType | unit | |
| double | valueInUnits |
Returns
| Type | Description |
|---|---|
| int |
Remarks
Unit increment is the smallest step that value in units (such as an object position or a scene dimension) can take. Values less than a unit increment are rounded.