X2452

REFLECTION OF X1316 IN X6

X2452 is the reflection of X1316 in X6.
< 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) { 1316, 6 }: Central Line L(1316, 6) { 6, 523 }: Central Line L(6, 523) { 98, 648 }: Central Line L(98, 648) { 30, 1351 }: Central Line L(30, 1351) { 3, 2407 }: Central Line L(3, 2407) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1316 = 5th MOSES INTERSECTION (0.5678, 0.2795) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_98 = TARRY POINT (0.8891, -0.2281) X_648 = TRILINEAR POLE OF EULER LINE (0.4563, 0.5855) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_1351 = REFLECTION OF X(3) IN X(6) (0.7000, 0.4324) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_2407 = GIBERT-SIMSON TRANSFORM OF X(110) (1.2056, 0.9180) X_2452 = REFLECTION OF X(1316) IN X(6) (0.6322, 0.2549) A B C X1316 X6 X523 X98 X648 X30 X1351 X3 X2407 X2452 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2452 = REFLECTION OF X_1316 IN X_6."""

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


        def construct_x_02452(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2452 = REFLECTION OF X_1316 IN X_6 on reference triangle ABC."""
            X_1316 = eval_trilinear_point(model, A, B, C, 'b*c*(sin(B - C))**(2) + a**(2)*sin(A - B)*sin(A - C)', ID="X_1316", classes=["center"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center"])
            X_2452 = reflection_in_point(model, X_1316, X_6, ID="X_2452", classes=["selected", "target"], guide=False)
            X_523 = eval_trilinear_point(model, A, B, C, 'sin(B -C)', ID="X_523", classes=["center", "incident"])
            central_line(model, X_6, X_523, 6, 523, incident=True)
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_648 = eval_trilinear_point(model, A, B, C, '1/(a*(b**(2) - c**(2))*(b**(2) + c**(2) - a**(2)))', ID="X_648", classes=["center", "incident"])
            central_line(model, X_98, X_648, 98, 648, incident=True)
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_1351 = eval_trilinear_point(model, A, B, C, 'a - R*cot(omega)*cos(A)', ID="X_1351", classes=["center", "incident"])
            central_line(model, X_30, X_1351, 30, 1351, incident=True)
            return promote_point_to_top(model, X_2452)


        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_2452 on the given reference triangle."""
            model = create_model('X_2452 = REFLECTION OF X_1316 IN X_6')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02452(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-02452.json"))
            write_center_svg(
                model_acute,
                here / "x-02452.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )