X3120

DANNEELS PERSPECTOR FOR X10

X3120 = reflection of X902 in X3011
< 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) { 902, 3011 }: Central Line L(902, 3011) { 58, 79 }: Central Line L(58, 79) { 1, 149 }: Central Line L(1, 149) { 115, 125 }: Central Line L(115, 125) { 11, 244 }: Central Line L(11, 244) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_902 = CROSSPOINT OF X(6) AND X(106) (1.2500, 1.2247) X_3011 = (NAGEL LINE)∩(ORTHIC AXIS) (1.0051, 0.6582) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_1 = INCENTER (0.5714, 0.2333) X_149 = REFLECTION OF X(20) IN X(104) (1.3265, -0.3333) X_115 = CENTER OF KIEPERT HYPERBOLA (0.7507, 0.0838) X_125 = CENTER OF JERABEK HYPERBOLA (0.6803, 0.0260) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_244 = -LINE CONJUGATE OF X(100) (0.7857, 0.1166) X_3120 = DANNEELS PERSPECTOR FOR X(10) (0.7602, 0.0916) A B C X902 X3011 X58 X79 X1 X149 X115 X125 X11 X244 X3120 (a, b, c) = (5, 6, 7) | AB = 1

X3120 (DANNEELS PERSPECTOR FOR X10) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3120 = DANNEELS PERSPECTOR FOR X_10."""

        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,
            incenter_of,
            promote_point_to_top,
            reflection_in_point,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03120(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3120 = DANNEELS PERSPECTOR FOR X_10 on reference triangle ABC."""
            X_902 = eval_trilinear_point(model, A, B, C, 'a*(b + c - 2*a)', ID="X_902", classes=["center"])
            X_3011 = eval_trilinear_point(model, A, B, C, '(b*c*(2*a**(3) + (b + c)*(b - c + a)*(b - c - a)))', ID="X_3011", classes=["center"])
            X_3120 = reflection_in_point(model, X_902, X_3011, ID="X_3120", classes=["selected", "target"], guide=False)
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            X_79 = eval_trilinear_point(model, A, B, C, '1/(1 + 2*cos(A))', ID="X_79", classes=["center", "incident"])
            central_line(model, X_58, X_79, 58, 79, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_149 = eval_trilinear_point(model, A, B, C, '(b*c*(b**(3) + c**(3) - a**(3) + (a**(2) - b*c)*(b + c) + a*(b*c - b**(2) - c**(2))))', ID="X_149", classes=["center", "incident"])
            central_line(model, X_1, X_149, 1, 149, incident=True)
            X_115 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) - c**(2))**(2)', ID="X_115", classes=["center", "incident"])
            X_125 = eval_trilinear_point(model, A, B, C, 'cos(A)*(sin(B - C))**(2)', ID="X_125", classes=["center", "incident"])
            central_line(model, X_115, X_125, 115, 125, incident=True)
            return promote_point_to_top(model, X_3120)


        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_3120 on the given reference triangle."""
            model = create_model('X_3120 = DANNEELS PERSPECTOR FOR X_10')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03120(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-03120.json"))
            write_center_svg(
                model_acute,
                here / "x-03120.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )