API reference

Utils Class

Object Data for package-static-func

Converts Controller type to Ffi.Controller type.
Parameters
controller
Controller type.
Exceptions
ArgumentException
If an invalid Controller type was passed in.
Linearly scale a value from its "position" in a source range to an equivalent value in a target range. Does not impose clamping within the range, that is, when input is outside the input range it will map to an appropriate value outside the output range.
Parameters
input
The value to be scaled.
inMin
The lower limit of the source range.
inMax
The upper limit of the source range.
outMin
The lower limit of the target range.
outMax
The upper limit of the target range.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon