#[non_exhaustive]pub enum SnapKind {
Endpoint,
Midpoint,
Center,
Quadrant,
Intersection,
Perpendicular,
Tangent,
Nearest,
Insertion,
}Expand description
the kinds of object snap (decision 30, and AutoCAD’s insertion point)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Endpoint
a line’s or arc’s ends, a polyline’s and a Bézier chain’s vertices, a fill’s corners
Midpoint
the middle of a line, of each segment of a polyline, of an arc, of each Bézier piece and of an open ellipse or spline (by length)
Center
a circle’s, arc’s or ellipse’s centre (looked for when the pointer is over the curve)
Quadrant
the points of a circle, arc or ellipse on its own axes (an ellipse made of a circle by an uneven insert: its axes’ ends)
Intersection
where two pieces near the pointer cross (also across inserts, fills’ edges, a polyline with itself)
Perpendicular
the foot of the perpendicular from the base point (SnapOptions::base)
Tangent
where a line from the base point touches a circle, arc or curve
Nearest
the nearest point of what is near the pointer
Insertion
a text’s alignment point, an insert’s insertion point (each copy of an array)