geometry.braik_mac_construction =============================== .. py:module:: geometry.braik_mac_construction .. autoapi-nested-parse:: braikenridge_maclaurin_construction https://mathworld.wolfram.com/ConicSection.html 5 Points define a conic section on a 2D normal orthogonal plane using this technique. Classes ------- .. autoapisummary:: geometry.braik_mac_construction.BraikMac geometry.braik_mac_construction.Point Module Contents --------------- .. py:class:: BraikMac Given a list of 5 points, determine the corresponding conic section equation and provide it to the user | x**2 xy y**2 x y 1 | | x1**2 x1y1 y1**2 x1 y1 1 | | x2**2 x2y2 y2**2 x2 y2 1 | = 0 | x3**2 x3y3 y3**2 x3 y3 1 | | x4**2 x4y4 y4**2 x4 y4 1 | | x5**2 x5y5 y5**2 x5 y5 1 | >>> p1 = Point(0.0,0.0) >>> p2 = Point(5.0,0.0) >>> p3 = Point(2.0,3.0) >>> p4 = Point(1.0,10.0) >>> p5 = Point(6.0,7.0) >>> BraikMac([p1,p2,p3,p4,p5]) # doctest: +NORMALIZE_WHITESPACE BraikMac(p_list=[Point(x=0.0, y=0.0), Point(x=5.0, y=0.0), Point(x=2.0, y=3.0), Point(x=1.0, y=10.0), Point(x=6.0, y=7.0)]) .. py:method:: __post_init__() -> None .. py:property:: generate :type: str .. py:attribute:: p_list :type: list[Point] :value: [] .. py:class:: Point A point defined by 2 floats representing a length on a normalized orthogonal coordinate system default coordinate is the origin >>> Point(-1.0, 0.0) Point(x=-1.0, y=0.0) .. py:method:: __post_init__() -> None .. py:attribute:: x :type: float :value: 0.0 .. py:attribute:: y :type: float :value: 0.0