X1301

COLLINGS TRANSFORM OF X235

< 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, 64 }: Central Line L(24, 64) { 4, 122 }: Central Line L(4, 122) { 98, 459 }: Central Line L(98, 459) { 403, 477 }: Central Line L(403, 477) { 162, 934 }: Central Line L(162, 934) { 25, 1073 }: Central Line L(25, 1073) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_520 = ISOGONAL CONJUGATE OF X(107) (-0.0490, 0.2227) X_4 = ORTHOCENTER (0.6122, 0.3958) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_64 = ISOGONAL CONJUGATE OF X(20) (0.5579, 1.5943) X_122 = -OF-MEDIAL-TRIANGLE (0.5195, -0.0036) X_98 = TARRY POINT (0.8891, -0.2281) X_459 = -CEVA CONJUGATE OF X(4) (0.5934, 0.8103) X_403 = OF THE ORTHIC TRIANGLE (0.7040, 0.6358) X_477 = TIXIER ANTIPODE (0.0176, -0.0644) X_162 = CEVAPOINT OF X(108) AND X(109) (0.4897, 0.6018) X_934 = -CROSS CONJUGATE OF X(57) (0.4269, 0.6071) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_1073 = -CROSS CONJUGATE OF X(3) (0.4792, -0.4343) X_1301 = COLLINGS TRANSFORM OF X(235) (0.6568, 0.5877) A B C X520 X4 X24 X64 X122 X98 X459 X403 X477 X162 X934 X25 X1073 X1301 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1301 = COLLINGS TRANSFORM OF X_235."""

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


        def construct_x_01301(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1301 = COLLINGS TRANSFORM OF X_235 on reference triangle ABC."""
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center"])
            X_64 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - cos(B)*cos(C))', ID="X_64", classes=["center"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_122 = eval_trilinear_point(model, A, B, C, '(b**(2) - c**(2))**(2)*(cos(A) - cos(B)*cos(C))*(cot(A))**(2)', ID="X_122", classes=["center"])
            central_line(model, X_24, X_64, 24, 64)
            central_line(model, X_4, X_122, 4, 122)
            X_1301 = intersect_lines(model, X_24, X_64, X_4, X_122, ID="X_1301", classes=["selected", "target"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_459 = eval_trilinear_point(model, A, B, C, '(sec(A))/(tan(B) + tan(C) - tan(A))', ID="X_459", classes=["center", "incident"])
            central_line(model, X_98, X_459, 98, 459, incident=True)
            return promote_point_to_top(model, X_1301)


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