X1310

COLLINGS TRANSFORM OF X940

< 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) { 98, 336 }: Central Line L(98, 336) { 108, 664 }: Central Line L(108, 664) { 112, 662 }: Central Line L(112, 662) { 107, 811 }: Central Line L(107, 811) { 105, 1036 }: Central Line L(105, 1036) { 741, 1245 }: Central Line L(741, 1245) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_940 = POINT ALDEBARAN (0.5757, 0.2411) X_98 = TARRY POINT (0.8891, -0.2281) X_336 = ISOTOMIC CONJUGATE OF X(240) (0.7020, -0.0409) X_108 = Ψ(CIRCUMCENTER, INCENTER) (0.5320, 0.6114) X_664 = TRILINEAR POLE OF LINE X(2)X(7) (0.2391, 0.5142) X_112 = Ψ(ORTHOCENTER, SYMMEDIAN POINT) (0.5162, 0.6121) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_107 = Ψ(SYMMEDIAN POINT, ORTHOCENTER) (0.5733, 0.6071) X_811 = ISOGONAL CONJUGATE OF X(810) (0.4151, 0.5616) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_1036 = ISOGONAL CONJUGATE OF X(388) (0.5632, 0.2044) X_741 = EVEN (- 1, 1) CIRCUMCIRCLE POINT (1.0071, 0.0451) X_1245 = ISOGONAL CONJUGATE OF X(1010) (0.5991, 0.2625) X_1310 = COLLINGS TRANSFORM OF X(940) (0.1699, 0.4912) A B C X513 X940 X98 X336 X108 X664 X112 X662 X107 X811 X105 X1036 X741 X1245 X1310 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1310 = COLLINGS TRANSFORM OF X_940."""

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


        def construct_x_01310(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1310 = COLLINGS TRANSFORM OF X_940 on reference triangle ABC."""
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center"])
            X_940 = eval_trilinear_point(model, A, B, C, '(a**(2) + a*(b + c) + 2*b*c)', ID="X_940", classes=["center"])
            X_1310 = cevapoint(model, A, B, C, X_513, X_940, ID="X_1310", classes=["selected", "target"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_336 = eval_trilinear_point(model, A, B, C, 'csc(A)*cot(A)*sec(A +  omega  )', ID="X_336", classes=["center", "incident"])
            central_line(model, X_98, X_336, 98, 336, incident=True)
            X_108 = eval_trilinear_point(model, A, B, C, 'a/(sec(B) - sec(C))', ID="X_108", classes=["center", "incident"])
            X_664 = eval_trilinear_point(model, A, B, C, '1/(a*(b - c)*(b + c - a))', ID="X_664", classes=["center", "incident"])
            central_line(model, X_108, X_664, 108, 664, incident=True)
            X_112 = eval_trilinear_point(model, A, B, C, 'a/(sin(2*B) - sin(2*C))', ID="X_112", classes=["center", "incident"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center", "incident"])
            central_line(model, X_112, X_662, 112, 662, incident=True)
            return promote_point_to_top(model, X_1310)


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