X2103

REFLECTION OF X1114 IN X1

X2103 is the reflection of X1114 in X1.
< 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) { 1114, 1 }: Central Line L(1114, 1) { 30, 944 }: Central Line L(30, 944) { 8, 1312 }: Central Line L(8, 1312) { 517, 1113 }: Central Line L(517, 1113) { 518, 2105 }: Central Line L(518, 2105) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1114 = 2nd EULER-LINE-CIRCUMCIRCLE INTERSECTION (0.3178, -0.3746) X_1 = INCENTER (0.5714, 0.2333) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_944 = HOFSTADTER TRAPEZOID POINT (0.5306, 0.0708) X_8 = NAGEL POINT (0.4694, 0.1333) X_1312 = 1st MOSES INTERSECTION (0.6472, 0.4872) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_1113 = 1st EULER-LINE-CIRCUMCIRCLE INTERSECTION (0.6822, 0.5787) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_2105 = REFLECTION OF X(1114) IN X(6) (0.8822, 0.9091) X_2103 = REFLECTION OF X(1114) IN X(1) (0.8250, 0.8412) A B C X1114 X1 X30 X944 X8 X1312 X517 X1113 X518 X2105 X2103 (a, b, c) = (5, 6, 7) | AB = 1

X2103 (REFLECTION OF X1114 IN X1) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2103 = REFLECTION OF X_1114 IN X_1."""

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


        def construct_x_02103(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2103 = REFLECTION OF X_1114 IN X_1 on reference triangle ABC."""
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center"])
            X_944 = eval_trilinear_point(model, A, B, C, 'b*c*(3*a**(4) - 2*a**(3)*(b + c) + (b - c)**(2)*(2*a*b + 2*a*c - 2*b*c - b**(2) - c**(2) - 2*a**(2)))', ID="X_944", classes=["center"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_1114 = eval_trilinear_point(model, A, B, C, '(R + d)*cos(A) - 2*R*cos(B)*cos(C)', ID="X_1114", classes=["center"])
            central_line(model, X_30, X_944, 30, 944)
            central_line(model, X_1, X_1114, 1, 1114)
            X_2103 = intersect_lines(model, X_30, X_944, X_1, X_1114, ID="X_2103", classes=["selected", "target"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_1312 = eval_trilinear_point(model, A, B, C, '((J - 1)*cos(A) + 2*(J + 1)*cos(B)*cos(C))', ID="X_1312", classes=["center", "incident"])
            central_line(model, X_8, X_1312, 8, 1312, incident=True)
            return promote_point_to_top(model, X_2103)


        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_2103 on the given reference triangle."""
            model = create_model('X_2103 = REFLECTION OF X_1114 IN X_1')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02103(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-02103.json"))
            write_center_svg(
                model_acute,
                here / "x-02103.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )