Synced
EditorPlanarNavigation.ZoomOrigin
Section titled “EditorPlanarNavigation.ZoomOrigin”
- Changes the screen-space origin so zoom preserves the same content point beneath the cursor.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Interactions
Scope: Editor
Declaration
Section titled “Declaration”public static System.Numerics.Vector2 InnoEditor.Interactions.EditorPlanarNavigation.ZoomOrigin(System.Numerics.Vector2 origin, System.Numerics.Vector2 pivot, float previousScale, float nextScale)Parameters
Section titled “Parameters”Parameter origin: Current logical-pixel content origin.
Parameter pivot: Logical-pixel cursor position relative to the canvas.
Parameter previousScale: Previous positive content magnification.
Parameter nextScale: New positive content magnification after clamping.
Returns
Section titled “Returns”The origin preserving the pivot’s content coordinate.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: An input is non-finite or a scale is not positive.