The UnitsModule
class provides functionality for converting values into world-space units.
const Diagnostics = require('Diagnostics'); const Units = require('Units'); const value = 5; Diagnostics.log(value + ' cm => ' + Units.cm(value)); Diagnostics.log(value + ' ft => ' + Units.ft(value));
This class exposes no properties.
Method | Description |
---|---|
|
Converts the specified centimeter value to world units. |
|
Converts the specified foot value to world units. |
|
Converts the specified inch value to world units. |
|
Converts the specified meter value to world units. |
|
Converts the specified millimeter value to world units. |
|
Converts the specified yard value to world units. |