X2687

SR(X74, X100)

X2687 = reflection of X1290 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) { 1290, 3 }: Central Line L(1290, 3) { 30, 100 }: Central Line L(30, 100) { 108, 186 }: Central Line L(108, 186) { 21, 476 }: Central Line L(21, 476) { 74, 513 }: Central Line L(74, 513) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1290 = COLLINGS TRANSFORM OF X(36) (1.0092, 0.1355) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_108 = Ψ(CIRCUMCENTER, INCENTER) (0.5320, 0.6114) X_186 = INVERSE-IN-CIRCUMCIRCLE OF X(4) (0.7957, 0.8758) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_476 = TIXIER POINT (0.9824, 0.2685) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_2687 = SR(X(74), X(100)) (-0.0092, 0.0687) A B C X1290 X3 X30 X100 X108 X186 X21 X476 X74 X513 X2687 (a, b, c) = (5, 6, 7) | AB = 1

X2687 (SR(X74, X100)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2687 = SR(X_74, X_100)."""

        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_02687(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2687 = SR(X_74, X_100) on reference triangle ABC."""
            X_1290 = point_from_barycentrics(model, A, B, C, -0.096774194, 0.87096774, 0.22580645, ID="X_1290", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            X_2687 = reflection_in_point(model, X_1290, X_3, ID="X_2687", classes=["selected", "target"], guide=False)
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            central_line(model, X_30, X_100, 30, 100, incident=True)
            X_108 = eval_trilinear_point(model, A, B, C, 'a/(sec(B) - sec(C))', ID="X_108", classes=["center", "incident"])
            X_186 = eval_trilinear_point(model, A, B, C, '4*cos(A) - sec(A)', ID="X_186", classes=["center", "incident"])
            central_line(model, X_108, X_186, 108, 186, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_476 = eval_trilinear_point(model, A, B, C, '1/((1 + 2*cos(2*A))*sin(B - C))', ID="X_476", classes=["center", "incident"])
            central_line(model, X_21, X_476, 21, 476, incident=True)
            return promote_point_to_top(model, X_2687)


        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_2687 on the given reference triangle."""
            model = create_model('X_2687 = SR(X_74, X_100)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02687(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-02687.json"))
            write_center_svg(
                model_acute,
                here / "x-02687.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )