X805

o-(- 2, 2) CIRCUMCIRCLE POINT

< A B C >: Reference Triangle △ABC [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) { 98, 385 }: Central Line L(98, 385) { 99, 512 }: Central Line L(99, 512) { 110, 669 }: Central Line L(110, 669) { 111, 694 }: Central Line L(111, 694) { 187, 729 }: Central Line L(187, 729) { 249, 827 }: Central Line L(249, 827) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_804 = ODD (- 2, 2) INFINITY POINT (0.9171, 0.6474) X_98 = TARRY POINT (0.8891, -0.2281) X_385 = -HIRST INVERSE OF X(6) (2.2863, 2.0795) X_99 = STEINER POINT (0.1109, 0.4322) X_512 = ISOGONAL CONJUGATE OF X(99) (1.0394, -0.1040) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_669 = CROSSDIFFERENCE OF X(2) AND X(39) (-4.3514, 4.6163) X_111 = PARRY POINT (0.9885, -0.0457) X_694 = ISOGONAL CONJUGATE OF X(385) (1.0179, 0.0378) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_729 = EVEN (- 2, 0) CIRCUMCIRCLE POINT (1.0096, 0.1290) X_249 = ISOGONAL CONJUGATE OF X(115) (0.5045, 0.3948) X_827 = o-(0, 4) CIRCUMCIRCLE POINT (0.3242, 0.5811) X_805 = o-(- 2, 2) CIRCUMCIRCLE POINT (0.9729, -0.0897) A B C X804 X98 X385 X99 X512 X110 X669 X111 X694 X187 X729 X249 X827 X805 (a, b, c) = (5, 6, 7) | AB = 1

X805 (o-(- 2, 2) CIRCUMCIRCLE POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_805 = o-(- 2, 2) CIRCUMCIRCLE POINT."""

        from __future__ import annotations

        from pathlib import Path

        import sympy.geometry as spg
        from geometor.model import Model

        from geometor.etc.ops import (
            central_line,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            isogonal_conjugate,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00805(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_805 = o-(- 2, 2) CIRCUMCIRCLE POINT on reference triangle ABC."""
            X_804 = eval_trilinear_point(model, A, B, C, 'a **(-3)*(b**(2) - c**(2)) + a**(1)*(b **(-2) - c **(-2))', ID="X_804", classes=["center"])
            X_805 = isogonal_conjugate(model, A, B, C, X_804, ID="X_805", classes=["selected", "target"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_385 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(4) - b**(2)*c**(2))', ID="X_385", classes=["center", "incident"])
            central_line(model, X_98, X_385, 98, 385, incident=True)
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            X_512 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) - c**(2))', ID="X_512", classes=["center", "incident"])
            central_line(model, X_99, X_512, 99, 512, incident=True)
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            X_669 = eval_trilinear_point(model, A, B, C, 'a**(3)*(b**(2) - c**(2))', ID="X_669", classes=["center", "incident"])
            central_line(model, X_110, X_669, 110, 669, incident=True)
            return promote_point_to_top(model, X_805)


        def build_model(
            sides: tuple[float, float, float] = (5.0, 6.0, 7.0),
            show_guides: bool = False,
        ) -> Model:
            """Build a `geometor.model.Model` for X_805 on the given reference triangle."""
            model = create_model('X_805 = o-(- 2, 2) CIRCUMCIRCLE POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00805(model, A, B, C)
            return model


        if __name__ == "__main__":
            here = Path(__file__).resolve().parent
            model_acute = build_model((5.0, 6.0, 7.0))
            model_acute.save(str(here / "x-00805.json"))
            write_center_svg(
                model_acute,
                here / "x-00805.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )