Conic Sections
Circles, ellipses, parabolas, and hyperbolas are all conics. Change the eccentricity and watch the curve transform from a circle to a hyperbola.
The focus is at the origin. Eccentricity controls the shape: 0 is a circle, between 0 and 1 an ellipse, 1 a parabola, and above 1 a hyperbola. The dashed line is the directrix; every point on the conic is e times farther from the focus than from the directrix.
What you are seeing
A conic is the set of points whose distance to a focus is e times the distance to a directrix.
Eccentricity e = 0 gives a circle, 0 < e < 1 an ellipse, e = 1 a parabola, and e > 1 a hyperbola.
In polar form, r = p / (1 + e cos θ) places one focus at the origin.
Why it matters
Conics describe planetary orbits, projectile paths, satellite dishes, lenses, and hyperbolic navigation.
Complexity & details
Sampling n points costs O(n). The type and directrix are determined in O(1).
Frequently asked questions
Why are they called conic sections?+
They are the curves obtained by slicing a double cone with a plane at different angles.
What does eccentricity measure?+
It measures how much a conic deviates from a circle. Larger e means a more elongated or open curve.