Expand description
Transform math of a graphics layer, re-exported from cranpose_ui_graphics.
Functions§
- apply_
layer_ affine_ to_ point - Point counterpart of
apply_layer_affine_to_rect: scale about the layer pivot, then translate. Rotation/perspective are deliberately excluded — the affine space is the one SDF shapes are evaluated in, with rotation carried by the deformed quad instead. - apply_
layer_ affine_ to_ rect - Scales and translates a rectangle around the layer’s transform origin.
- apply_
layer_ to_ quad - Transforms a rectangle’s four corners through scale, rotation and perspective.
- apply_
layer_ to_ rect - Returns the axis-aligned bounds after the complete layer transform.
- layer_
transform_ to_ parent - Combines a graphics layer with the node’s placement in its parent.
- layer_
transform_ to_ window - Extends an ancestor mapping from untransformed layout coordinates to window
coordinates with this node’s graphics layer.
originandboundsdescribe the node before any ancestor transforms;boundsis relative toorigin. - layer_
uniform_ scale - Returns the smaller of the layer’s horizontal and vertical scales.