Skip to content

Units ​

class in OpalScript

Typed quantities. Convert only through Units helpers or .Value.

Methods ​

MemberDescription
SecondsA typed Seconds quantity. Use .Value for explicit conversion to an untyped number.
MillisecondsA typed Milliseconds quantity. Use .Value for explicit conversion to an untyped number.
DegreesA typed Degrees quantity. Use .Value for explicit conversion to an untyped number.
RadiansA typed Radians quantity. Use .Value for explicit conversion to an untyped number.
PixelsA typed Pixels quantity. Use .Value for explicit conversion to an untyped number.
PixelsPerSecondA typed PixelsPerSecond quantity. Use .Value for explicit conversion to an untyped number.
Units.SecondsConvert milliseconds to seconds.
Units.MillisecondsConvert seconds to milliseconds.
Units.DegreesConvert radians to degrees.
Units.RadiansConvert degrees to radians.

See also ​