X1300

COLLINGS TRANSFORM OF X136

< 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) { 4, 110 }: Central Line L(4, 110) { 24, 107 }: Central Line L(24, 107) { 2, 131 }: Central Line L(2, 131) { 20, 254 }: Central Line L(20, 254) { 109, 225 }: Central Line L(109, 225) { 99, 264 }: Central Line L(99, 264) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_107 = Ψ(SYMMEDIAN POINT, ORTHOCENTER) (0.5733, 0.6071) X_2 = CENTROID (0.5374, 0.2000) X_131 = INTERSECTION OF LINES X(3)X(125) AND X(4)X(135) (0.3098, 0.1823) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_254 = -CROSS CONJUGATE OF X(4) (1.4506, 0.5587) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_99 = STEINER POINT (0.1109, 0.4322) X_264 = ISOTOMIC CONJUGATE OF CIRCUMCENTER (0.5720, 0.3293) X_1300 = COLLINGS TRANSFORM OF X(136) (0.9926, 0.2353) A B C X4 X110 X24 X107 X2 X131 X20 X254 X109 X225 X99 X264 X1300 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1300 = COLLINGS TRANSFORM OF X_136."""

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


        def construct_x_01300(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1300 = COLLINGS TRANSFORM OF X_136 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_186 = eval_trilinear_point(model, A, B, C, '4*cos(A) - sec(A)', ID="X_186", classes=["center"])
            X_1300 = cevapoint(model, A, B, C, X_4, X_186, ID="X_1300", classes=["selected", "target"])
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            central_line(model, X_4, X_110, 4, 110, incident=True)
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center", "incident"])
            X_107 = eval_trilinear_point(model, A, B, C, '1/(cos(A)*(sin(2*B) - sin(2*C)))', ID="X_107", classes=["center", "incident"])
            central_line(model, X_24, X_107, 24, 107, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_131 = point_from_barycentrics(model, A, B, C, 0.57236082, 0.12379803, 0.30384114, ID="X_131", classes=["center", "incident"])
            central_line(model, X_2, X_131, 2, 131, incident=True)
            return promote_point_to_top(model, X_1300)


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