Synced
EditorPlanarNavigation.WheelFactor
Section titled “EditorPlanarNavigation.WheelFactor”
- Converts wheel input to the common exponential magnification used by Editor canvases.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Interactions
Declaration
Section titled “Declaration”public static float Inno.Editor.Interactions.EditorPlanarNavigation.WheelFactor(float wheel, float sensitivity = 0.16)Parameters
Section titled “Parameters”Parameter wheel: Logical wheel units, independent of framebuffer DPI.
Parameter sensitivity: Positive exponential sensitivity.
Returns
Section titled “Returns”A finite positive magnification factor; positive wheel magnifies content.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: Input is non-finite or sensitivity is not positive.