Skip to main content

Module conic

Module conic 

Source
Expand description

Conic sections: circle, ellipse, hyperbola, parabola.

Each is a shape described by a Frame and one or two size parameters. The frame is not decoration: it fixes the parameterization. A circle’s angular parameter is measured from its frame’s x axis towards its y axis, so “the point at 0” is a specific place that survives the shape being stored, reloaded and transformed.

Conics live in their frame’s xy plane, with the frame’s z as the normal.

Evaluation and derivatives are in crate::elementary; this module holds the descriptions and the queries that follow directly from them.

A straight line needs no type of its own: it is exactly an Axis, and the conventional design’s separate line type carries no information the axis does not.

Structs§

Circle
A circle in space.
Circle2
A circle in the plane.
Ellipse
An ellipse in space.
Ellipse2
An ellipse in the plane.
Hyperbola
A hyperbola in space.
Hyperbola2
A hyperbola in the plane.
Parabola
A parabola in space, opening along its frame’s x axis.
Parabola2
A parabola in the plane.

Functions§

complete_elliptic_e
The complete elliptic integral of the second kind, E(m), for m in [0, 1].