X1266

ISOTOMIC CONJUGATE OF X1120

< 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) { 10, 75 }: Central Line L(10, 75) { 7, 145 }: Central Line L(7, 145) { 142, 192 }: Central Line L(142, 192) { 44, 545 }: Central Line L(44, 545) { 239, 527 }: Central Line L(239, 527) { 320, 519 }: Central Line L(320, 519) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1120 = -BLAIKIE TRANSFORM OF X(1) (1.2041, 0.2000) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_7 = GERGONNE POINT (0.5903, 0.2769) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_142 = COMPLEMENT OF X(9) (0.5506, 0.2192) X_192 = -CEVA CONJUGATE OF X(2) (CONGRUENT PARALLELIANS POINT) (0.6147, 0.2635) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_545 = DIRECTION OF VECTOR AX + BX + CX, where X = X(190) (-0.0013, 0.4328) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_527 = DIRECTION OF VECTOR AX + BX + CX, where X = X(7) (0.8698, 0.6836) X_320 = ISOTOMIC CONJUGATE OF X(80) (-2.6735, -3.5993) X_519 = ISOGONAL CONJUGATE OF X(106) (0.9566, 0.6107) X_1266 = ISOTOMIC CONJUGATE OF X(1120) (2.8367, 1.7996) A B C X1120 X10 X75 X7 X145 X142 X192 X44 X545 X239 X527 X320 X519 X1266 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1266 = ISOTOMIC CONJUGATE OF X_1120."""

        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,
            gergonne_point_of,
            isotomic_conjugate,
            promote_point_to_top,
            spieker_center_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01266(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1266 = ISOTOMIC CONJUGATE OF X_1120 on reference triangle ABC."""
            X_1120 = eval_trilinear_point(model, A, B, C, '(b*c/(b**(2) + c**(2) + b*a + c*a - 4*b*c))', ID="X_1120", classes=["center"])
            X_1266 = isotomic_conjugate(model, A, B, C, X_1120, ID="X_1266", classes=["selected", "target"])
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            central_line(model, X_10, X_75, 10, 75, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_145 = eval_trilinear_point(model, A, B, C, 'b*c*(3*a - b - c)', ID="X_145", classes=["center", "incident"])
            central_line(model, X_7, X_145, 7, 145, incident=True)
            X_142 = eval_trilinear_point(model, A, B, C, 'b + c - ((b - c)**(2))/a', ID="X_142", classes=["center", "incident"])
            X_192 = eval_trilinear_point(model, A, B, C, 'b*c*(c*a + a*b - b*c)', ID="X_192", classes=["center", "incident"])
            central_line(model, X_142, X_192, 142, 192, incident=True)
            return promote_point_to_top(model, X_1266)


        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_1266 on the given reference triangle."""
            model = create_model('X_1266 = ISOTOMIC CONJUGATE OF X_1120')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01266(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-01266.json"))
            write_center_svg(
                model_acute,
                here / "x-01266.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )