API Reference
Geolet provides a collection of geometry primitives for creating diagrams.
Primitives by Category
| Category |
Description |
| Points |
point, midpoint, foot |
| Lines & Segments |
line, segment, perpendicular, parallel, angle_bisector, tangent |
| Circles |
circle, circle_through, circumcircle, incircle |
| Angles |
angle for marking angles |
| Triangle |
Triangle class, factory functions (acute_triangle, right_triangle, etc.) |
| Triangle Centers |
centroid, orthocenter, circumcenter, incenter |
| Intersections |
intersection, tangent_point |
| Reflections |
reflect |
| Inversions |
invert, invert_line, invert_circle, inverted_line_center, inverted_circle_center |
| Figure & Decorators |
@figure, @autofigure, Figure class |
Common Parameters
Most primitives share these parameters:
Styling
| Parameter |
Type |
Default |
Description |
color |
str |
"black" |
Asymptote color name |
style |
str |
"solid" |
Line style: solid, dashed, dotted |
width |
float |
1.0 |
Line width |
Labels
| Parameter |
Type |
Default |
Description |
label |
str |
"" |
Display label (empty = no label) |
label_dir |
str |
varies |
Compass direction: N, NE, E, SE, S, SW, W, NW |
label_pos |
float |
0.5 |
Position along path (0.0-1.0) for curves |