X2577

X2-ISOCONJUGATE OF X2575

< 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) { 1, 19 }: Central Line L(1, 19) { 101, 1114 }: Central Line L(101, 1114) { 163, 1823 }: Central Line L(163, 1823) { 1755, 1822 }: Central Line L(1755, 1822) { 662, 2581 }: Central Line L(662, 2581) { 2159, 2578 }: Central Line L(2159, 2578) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_2579 = -ISOCONJUGATE OF X(1114) (0.2632, 3.1227) X_1 = INCENTER (0.5714, 0.2333) X_19 = CLAWSON POINT (0.6246, 0.4244) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_1114 = 2nd EULER-LINE-CIRCUMCIRCLE INTERSECTION (0.3178, -0.3746) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_1823 = ISOGONAL CONJUGATE OF X(2589) (0.3317, -0.0818) X_1755 = MIMOSA TRANSFORM OF X(287) (1.5943, 2.3982) X_1822 = ISOGONAL CONJUGATE OF X(2588) (0.8290, 0.5718) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_2581 = -ISOCONJUGATE OF X(2575) (0.2923, -0.2520) X_2159 = -ISOCONJUGATE OF X(30) (0.8357, -0.4858) X_2578 = -ISOCONJUGATE OF X(1113) (5.2085, 0.4308) X_2577 = -ISOCONJUGATE OF X(2575) (0.3425, -0.5891) A B C X48 X2579 X1 X19 X101 X1114 X163 X1823 X1755 X1822 X662 X2581 X2159 X2578 X2577 (a, b, c) = (5, 6, 7) | AB = 1

X2577 (X2-ISOCONJUGATE OF X2575) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2577 = X_2-ISOCONJUGATE OF X_2575."""

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


        def construct_x_02577(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2577 = X_2-ISOCONJUGATE OF X_2575 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", 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_1, X_19, 1, 19)
            central_line(model, X_101, X_1114, 101, 1114)
            X_2577 = intersect_lines(model, X_1, X_19, X_101, X_1114, ID="X_2577", classes=["selected", "target"])
            X_163 = eval_trilinear_point(model, A, B, C, '(sin(2*A))/(sin(2*B) - sin(2*C))', ID="X_163", classes=["center", "incident"])
            X_1823 = point_from_barycentrics(model, A, B, C, 0.72123578, 0.4152025, -0.13643829, ID="X_1823", classes=["center", "incident"])
            central_line(model, X_163, X_1823, 163, 1823, incident=True)
            return promote_point_to_top(model, X_2577)


        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_2577 on the given reference triangle."""
            model = create_model('X_2577 = X_2-ISOCONJUGATE OF X_2575')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02577(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-02577.json"))
            write_center_svg(
                model_acute,
                here / "x-02577.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )