StaticRELATIVE_The values returned by relativePosition for two circles.
Output option: the form (x-a)^2+(y-b)^2=r^2 (default). Chainable, persistent.
Output option: the developed equation x^2+y^2-2x+4y-4=0. Chainable, persistent.
The center, as a point.
ASCIIMath rendering of the current state (terminal output, not chainable).
The square of the radius, as an exact fraction. It is -1 for a circle that has not been defined.
LaTeX rendering of the current state (terminal output, not chainable).
Full duplicate of this instance, including display state (selected form
and options set via as*** / with***). Distinct from copy.
Copy the mathematical state of another instance into this (display
state is NOT transferred — the receiver keeps its own formatting). Entry
point used when constructing/parsing from a same-type input. Distinct from
clone. Classes without a real implementation throw
NotImplementedError.
The points of the circle with integer coordinates relative to the center. It is empty when the square of the radius is not an integer.
True when both circles have the same center and the same radius.
Replace the circle with an equation, another circle, a center and a radius, a center and a point, or three points. Arguments that do not match any form leave the circle unchanged.
Returns the number of intersections between circle and line.
0 = external, 1 = tangent, 2 = secant
Returns the relative position between two circles.
Change the radius.
Optionalsquare: boolean
when true, radius is the square of the radius.
Returns the tangent line(s) to the circle.
P: Point on the circle → 1 tangent (perpendicular to the radius at P).P: Point outside the circle → 2 tangents through P.P: Point inside the circle → [] (no real tangent).P: Fraction → 2 tangents with slope P.StaticfromStaticfromStaticfromStaticfromStaticfrom
A circle of the plane, stored by its center and the square of its radius, so that everything stays exact. Built from an equation (
"(x-1)^2+(y+2)^2=9"), from a center and a radius, from a center and a point of the circle, or from three points.Example