X1289

COLLINGS TRANSFORM OF X25

< 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) { 24, 98 }: Central Line L(24, 98) { 4, 127 }: Central Line L(4, 127) { 66, 74 }: Central Line L(66, 74) { 25, 339 }: Central Line L(25, 339) { 111, 459 }: Central Line L(111, 459) { 403, 842 }: Central Line L(403, 842) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_98 = TARRY POINT (0.8891, -0.2281) X_4 = ORTHOCENTER (0.6122, 0.3958) X_127 = -OF-MEDIAL-TRIANGLE (0.5480, -0.0061) X_66 = ISOGONAL CONJUGATE OF X(22) (0.5912, 1.0593) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_339 = ISOTOMIC CONJUGATE OF X(250) (0.6002, 0.0170) X_111 = PARRY POINT (0.9885, -0.0457) X_459 = -CEVA CONJUGATE OF X(4) (0.5934, 0.8103) X_403 = OF THE ORTHIC TRIANGLE (0.7040, 0.6358) X_842 = ISOGONAL CONJUGATE OF X(542) (-0.0101, 0.1156) X_1289 = COLLINGS TRANSFORM OF X(25) (0.6436, 0.5918) A B C X24 X98 X4 X127 X66 X74 X25 X339 X111 X459 X403 X842 X1289 (a, b, c) = (5, 6, 7) | AB = 1

X1289 (COLLINGS TRANSFORM OF X25) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1289 = COLLINGS TRANSFORM OF X_25."""

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


        def construct_x_01289(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1289 = COLLINGS TRANSFORM OF X_25 on reference triangle ABC."""
            X_1289 = eval_trilinear_point(model, A, B, C, 'tan(A)*csc(B - C)/(sin(2*A) - tan(omega)  )', ID="X_1289", classes=["selected", "target"])
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center", "incident"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            central_line(model, X_24, X_98, 24, 98, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_127 = eval_trilinear_point(model, A, B, C, 'b*c*(sin(2*B) - sin(2*C))*((b**(2) - c**(2))*sin(2*A) - b**(2)*sin(2*B) + c**(2)*sin(2*C))', ID="X_127", classes=["center", "incident"])
            central_line(model, X_4, X_127, 4, 127, incident=True)
            X_66 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(4) + c**(4) - a**(4))', ID="X_66", classes=["center", "incident"])
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center", "incident"])
            central_line(model, X_66, X_74, 66, 74, incident=True)
            return promote_point_to_top(model, X_1289)


        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_1289 on the given reference triangle."""
            model = create_model('X_1289 = COLLINGS TRANSFORM OF X_25')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01289(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-01289.json"))
            write_center_svg(
                model_acute,
                here / "x-01289.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )