X1223

ISOGONAL CONJUGATE OF X1202

< 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) { 7, 220 }: Central Line L(7, 220) { 2, 480 }: Central Line L(2, 480) { 75, 728 }: Central Line L(75, 728) { 9, 1038 }: Central Line L(9, 1038) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_9 = MITTENPUNKT (0.5110, 0.1615) X_142 = COMPLEMENT OF X(9) (0.5506, 0.2192) X_7 = GERGONNE POINT (0.5903, 0.2769) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_2 = CENTROID (0.5374, 0.2000) X_480 = -CEVA CONJUGATE OF X(220) (0.4089, 0.0793) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_728 = INTERSECTION OF LINES X(8)X(9) AND X(57)X(345) (0.3648, 0.0624) X_1038 = INTERSECTION OF LINES X(1)X(3) AND X(2)X(34) (0.5104, 0.1211) X_1223 = ISOGONAL CONJUGATE OF X(1202) (0.5291, 0.1921) A B C X9 X142 X7 X220 X2 X480 X75 X728 X1038 X1223 (a, b, c) = (5, 6, 7) | AB = 1

X1223 (ISOGONAL CONJUGATE OF X1202) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1223 = ISOGONAL CONJUGATE OF X_1202."""

        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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            gergonne_point_of,
            isogonal_conjugate,
            point_from_barycentrics,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01223(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1223 = ISOGONAL CONJUGATE OF X_1202 on reference triangle ABC."""
            X_1202 = point_from_barycentrics(model, A, B, C, 0.21636624, 0.32445983, 0.45917393, ID="X_1202", classes=["center"])
            X_1223 = isogonal_conjugate(model, A, B, C, X_1202, ID="X_1223", classes=["selected", "target"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_220 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)**(2)', ID="X_220", classes=["center", "incident"])
            central_line(model, X_7, X_220, 7, 220, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_480 = eval_trilinear_point(model, A, B, C, '(cot(A/2)*cos(A/2))**(2)', ID="X_480", classes=["center", "incident"])
            central_line(model, X_2, X_480, 2, 480, incident=True)
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            X_728 = eval_trilinear_point(model, A, B, C, '((b + c - a)**(3))', ID="X_728", classes=["center", "incident"])
            central_line(model, X_75, X_728, 75, 728, incident=True)
            return promote_point_to_top(model, X_1223)


        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_1223 on the given reference triangle."""
            model = create_model('X_1223 = ISOGONAL CONJUGATE OF X_1202')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01223(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-01223.json"))
            write_center_svg(
                model_acute,
                here / "x-01223.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )