Skip to main content

Module geometry

Module geometry 

Source
Expand description

Double-precision authoring points, vectors, transforms and bounds.

Modules§

bounds
Double-precision authoring dimensions, bounds and anchors.
flatten
Shared bounded Bezier-to-edge geometry, independent of pixel composition.

Structs§

Perspective
Rotates the plane z = 0 about a pivot and projects it onto the viewport.
Point
A position in two-dimensional design coordinates, without implicit narrowing.
Transform
A two-dimensional affine transform in double-precision design coordinates.
TransformComponents
Canonical affine factors in scale, shear, rotation, translation application order.
Vector2
A displacement or direction, distinct from a Point position.

Constants§

MAX_PERSPECTIVE_CURVE_PIECES
Maximum cubic pieces used for each curve verb in Perspective::project_path.

Traits§

AngleLiteral
Readable angle literals returning double-precision radians. Nonfinite floating inputs propagate; consuming geometry validates them.