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§
- Three
Point Arc - The circular arc from
startthrough a middle point toend.
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;
Nonewhen they are collinear withinCOLLINEAR_SINE, two of them coincide, or the circle is wider thanMAX_RADIUS.