Units
class in OpalScript
Typed quantities. Convert only through Units helpers or .Value.
Methods
| Member | Description |
|---|---|
| Seconds | A typed Seconds quantity. Use .Value for explicit conversion to an untyped number. |
| Milliseconds | A typed Milliseconds quantity. Use .Value for explicit conversion to an untyped number. |
| Degrees | A typed Degrees quantity. Use .Value for explicit conversion to an untyped number. |
| Radians | A typed Radians quantity. Use .Value for explicit conversion to an untyped number. |
| Pixels | A typed Pixels quantity. Use .Value for explicit conversion to an untyped number. |
| PixelsPerSecond | A typed PixelsPerSecond quantity. Use .Value for explicit conversion to an untyped number. |
| Units.Seconds | Convert milliseconds to seconds. |
| Units.Milliseconds | Convert seconds to milliseconds. |
| Units.Degrees | Convert radians to degrees. |
| Units.Radians | Convert degrees to radians. |