Computes and returns an affine transformation that makes toMakeVisible
visible and roughly centered on the screen.
the angle of the canvas in radians. This is the angle by which the canvas is rotated relative to the screen.
Returns an angle in the range (the same range as Vec3.angle).
Returns a Command that transforms the view such that [rect] is visible, and perhaps centered in the viewport. Returns null if no transformation is necessary
Static
getReturns the size of a grid cell (in canvas units) as used by snapToGrid.
Static
roundRounds the given point
to a multiple of 10 such that it is within tolerance
of
its original location. This is useful for preparing data for base-10 conversion.
Static
roundStatic
transform
Get the screen's visible region transformed into canvas space.