Conic Sections
parabola
The parabola y^2 = 4ax (opening right), or opening "left", "up" or "down", optionally with its vertex moved.
a (number) -- focal length
orientation (string) -- optional: "right" (default), "left", "up", "down"
vertex (point2d) -- optional; needs the orientation
hyperbola
The hyperbola (x - h)^2/a^2 - (y - k)^2/b^2 = 1.
centre (point2d) --
a (number) -- transverse semi-axis
b (number) -- conjugate semi-axis
rectHyperbola
The rectangular hyperbola (x - h)(y - k) = c^2.
centre (point2d) --
c_sq (number) -- c^2
conic
The general conic ax^2 + bxy + cy^2 + dx + ey + f = 0.
a (number) --
b (number) --
c (number) --
d (number) --
e (number) --
f (number) --
conicType
What a general conic is: circle, ellipse, parabola, hyperbola, rectangular hyperbola, pair of lines.
discriminant
The discriminant b^2 - 4ac of a general conic.
focus
The focus of a parabola.
foci
The two foci of an ellipse or hyperbola, as a list -- exact (a surd when irrational).
conic (ellipse | hyperbola) --
directrix
The directrix of a parabola.
axis
The axis of symmetry of a parabola.
latusRectum
The latus rectum of a parabola, as a line.
latusRectumLength
The length of the latus rectum of a parabola, ellipse or hyperbola.
conic (parabola | ellipse | hyperbola) --
eccentricity
The eccentricity of an ellipse or hyperbola, exact.
conic (ellipse | hyperbola) --
vertices
The two vertices of an ellipse or hyperbola, as a list.
conic (ellipse | hyperbola) --
coVertices
The two co-vertices (ends of the minor axis) of an ellipse.
majorAxis
The line of an ellipse's major axis.
minorAxis
The line of an ellipse's minor axis.
auxiliaryCircle
The auxiliary circle of an ellipse (radius = semi-major axis).
directorCircle
The director circle of an ellipse (radius^2 = a^2 + b^2).
asymptotes
The two asymptotes of a hyperbola, as a list of lines.
normalAt
The normal line to a parabola, ellipse or hyperbola at a point on it.
conic (parabola | ellipse | hyperbola) --
p (point2d) -- a point on the curve
chordOfContact
The chord of contact of the tangents from an external point to a parabola, ellipse or hyperbola.
conic (parabola | ellipse | hyperbola) --
p (point2d) -- an external point
isTangent
True if a line touches an ellipse or hyperbola.
l (line2d) --
conic (ellipse | hyperbola) --
conicCenter
The centre of a general conic, or text if it has none (a parabola).
conicShift
The conic moved so its centre is at the origin (the linear terms vanish).