Provides platform-neutral viewport math for CAD controls.
public static class CadViewportMath
kind:method, kind:property, kind:ctor. Press Esc to clear.MaximumZoomGets the maximum accepted zoom factor.MinimumZoomGets the minimum accepted zoom factor.CalculateBaseScale(CadSize, RenderBounds, Double)Calculates a fitted base scale for the provided bounds.CreateViewport(CadSize, RenderBounds, CadViewportState, Double)Creates a viewport from scene bounds and current user state.NormalizeOffset(Double)Normalizes a pan offset.NormalizeZoom(Double)Normalizes a zoom value for control use.Pan(CadViewportState, Double, Double)Returns a panned viewport state.ZoomAt(CadSceneViewport, CadPoint, Double)Returns a zoom state that keeps the provided focus point stable on screen.