X2723

SR(X101, X102)

X2723 = reflection of X929 in X3
< 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) { 929, 3 }: Central Line L(929, 3) { 108, 243 }: Central Line L(108, 243) { 101, 515 }: Central Line L(101, 515) { 102, 514 }: Central Line L(102, 514) { 103, 522 }: Central Line L(103, 522) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_929 = ISOGONAL CONJUGATE OF X(928) (0.9516, 0.3396) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_108 = Ψ(CIRCUMCENTER, INCENTER) (0.5320, 0.6114) X_243 = -LINE CONJUGATE OF X(73) (0.7516, 0.9505) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_515 = ISOGONAL CONJUGATE OF X(102) (0.6804, 0.7691) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_2723 = SR(X(101), X(102)) (0.0484, -0.1355) A B C X929 X3 X108 X243 X101 X515 X102 X514 X103 X522 X2723 (a, b, c) = (5, 6, 7) | AB = 1

X2723 (SR(X101, X102)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2723 = SR(X_101, X_102)."""

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


        def construct_x_02723(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2723 = SR(X_101, X_102) on reference triangle ABC."""
            X_929 = point_from_barycentrics(model, A, B, C, -0.17117605, 0.60497835, 0.56619769, ID="X_929", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            X_2723 = reflection_in_point(model, X_929, X_3, ID="X_2723", classes=["selected", "target"], guide=False)
            X_108 = eval_trilinear_point(model, A, B, C, 'a/(sec(B) - sec(C))', ID="X_108", classes=["center", "incident"])
            X_243 = eval_trilinear_point(model, A, B, C, '(sec(A))*((cos(A))**(2) - cos(B)*cos(C))', ID="X_243", classes=["center", "incident"])
            central_line(model, X_108, X_243, 108, 243, incident=True)
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            X_515 = eval_trilinear_point(model, A, B, C, '(b + c)*sec(A) - b*sec(B) - c*sec(C)', ID="X_515", classes=["center", "incident"])
            central_line(model, X_101, X_515, 101, 515, incident=True)
            X_102 = eval_trilinear_point(model, A, B, C, '1/(sin(B)*(sec(A) - sec(B)) + sin(C)*(sec(A) - sec(C)))', ID="X_102", classes=["center", "incident"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center", "incident"])
            central_line(model, X_102, X_514, 102, 514, incident=True)
            return promote_point_to_top(model, X_2723)


        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_2723 on the given reference triangle."""
            model = create_model('X_2723 = SR(X_101, X_102)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02723(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-02723.json"))
            write_center_svg(
                model_acute,
                here / "x-02723.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )