Skip to main content

Module arc

Module arc 

Source
Expand description

What a ProfileSegment::Arc’s three points mean, so the sketcher’s regions, its drawing tools and the kernel adapter agree on which triples make an arc and where it runs.

Structs§

ThreePointArc
The circular arc from start through a middle point to end.

Constants§

COLLINEAR_SINE
Below this sine of the angle at the first point, between the chords to the other two, three points are collinear. A ratio, so it judges three points a micron apart as it judges three a metre apart; the kernel’s three-point circle refuses at the same ratio.
MAX_RADIUS
The largest radius, in millimetres, a three-point circle may have. The kernel holds a circle as a centre and a radius, and from about 1e8 mm on (sooner the further the arc lies from the origin) the circle it builds through three points misses them by more than its tolerance; this leaves a tenth of that.

Functions§

circumcircle
The centre and radius of the circle through three points; None when they are collinear within COLLINEAR_SINE, two of them coincide, or the circle is wider than MAX_RADIUS.