X1308

COLLINGS TRANSFORM OF X661

X1308 = reflection of X101 in line X1X3
< 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) { 36, 105 }: Central Line L(36, 105) { 100, 514 }: Central Line L(100, 514) { 101, 513 }: Central Line L(101, 513) { 103, 517 }: Central Line L(103, 517) { 104, 516 }: Central Line L(104, 516) { 1, 840 }: Central Line L(1, 840) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3887 = com[INVERSE(n(3rd EULER TRIANGLE))] (0.9920, 0.5711) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_516 = ISOGONAL CONJUGATE OF X(103) (0.7703, 0.7386) X_1 = INCENTER (0.5714, 0.2333) X_840 = ISOGONAL CONJUGATE OF X(528) (0.0800, 0.3919) X_1308 = COLLINGS TRANSFORM OF X(661) (1.0102, 0.0916) A B C X3887 X36 X105 X100 X514 X101 X513 X103 X517 X104 X516 X1 X840 X1308 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1308 = COLLINGS TRANSFORM OF X_661."""

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


        def construct_x_01308(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1308 = COLLINGS TRANSFORM OF X_661 on reference triangle ABC."""
            X_36 = eval_trilinear_point(model, A, B, C, '1 - 2*cos(A)', ID="X_36", classes=["center"])
            X_105 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2) - a*(b + c))', ID="X_105", classes=["center"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center"])
            central_line(model, X_36, X_105, 36, 105)
            central_line(model, X_100, X_514, 100, 514)
            X_1308 = intersect_lines(model, X_36, X_105, X_100, X_514, ID="X_1308", classes=["selected", "target"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center", "incident"])
            central_line(model, X_101, X_513, 101, 513, incident=True)
            return promote_point_to_top(model, X_1308)


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