static Ffi.Controller | ControllerToFfiController ( Controller controller ) Converts Controller type to Ffi.Controller type. |
static float | 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. |
static Ffi.Controller Oculus.Haptics.Utils.ControllerToFfiController ( Controller controller ) |
---|
Converts Controller type to Ffi.Controller type. Parameters controller Controller type. Exceptions ArgumentException If an invalid Controller type was passed in. |
static float Oculus.Haptics.Utils.Map ( int input, int inMin, int inMax, int outMin, int outMax ) |
---|
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. inMinThe lower limit of the source range. inMaxThe upper limit of the source range. outMinThe lower limit of the target range. outMaxThe upper limit of the target range. |