X2094

REFLECTION OF X2 IN X57

X2094 is the reflection of X2 in X57.
< 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) { 2, 57 }: Centroid–Gergonne Line { 2, 7 }: Centroid–Gergonne Line { 376, 517 }: Central Line L(376, 517) { 189, 1121 }: Central Line L(189, 1121) { 524, 2087 }: Central Line L(524, 2087) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_7 = GERGONNE POINT (0.5903, 0.2769) X_376 = CENTROID OF THE ANTIPEDAL TRIANGLE OF X(2) (0.4626, 0.0042) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_189 = CYCLOCEVIAN CONJUGATE OF X(8) (0.6131, 0.7055) X_1121 = -BLAIKIE TRANSFORM OF X(2) (0.8358, -0.1143) X_524 = ISOGONAL CONJUGATE OF X(111) (0.1376, -0.2297) X_2087 = PK-TRANSFORM OF X(100) (2.1429, 2.0996) X_2094 = REFLECTION OF X(2) IN X(57) (0.6901, 0.4221) A B C X2 X57 X7 X376 X517 X189 X1121 X524 X2087 X2094 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2094 = REFLECTION OF X_2 IN X_57."""

        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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            gergonne_point_of,
            intersect_lines,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02094(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2094 = REFLECTION OF X_2 IN X_57 on reference triangle ABC."""
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_376 = eval_trilinear_point(model, A, B, C, '5*cos(A) - cos(B - C)', ID="X_376", classes=["center"])
            X_517 = eval_trilinear_point(model, A, B, C, '-1 + cos(B) + cos(C)', ID="X_517", classes=["center"])
            central_line(model, X_2, X_7, 2, 7)
            central_line(model, X_376, X_517, 376, 517)
            X_2094 = intersect_lines(model, X_2, X_7, X_376, X_517, ID="X_2094", classes=["selected", "target"])
            X_189 = eval_trilinear_point(model, A, B, C, 'b*c/(cos(B) + cos(C) - cos(A) - 1)', ID="X_189", classes=["center", "incident"])
            X_1121 = eval_trilinear_point(model, A, B, C, '(b*c/((b + c - a)*a - (a + b - c)*(a + c - b)))', ID="X_1121", classes=["center", "incident"])
            central_line(model, X_189, X_1121, 189, 1121, incident=True)
            return promote_point_to_top(model, X_2094)


        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_2094 on the given reference triangle."""
            model = create_model('X_2094 = REFLECTION OF X_2 IN X_57')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02094(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-02094.json"))
            write_center_svg(
                model_acute,
                here / "x-02094.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )