X59

ISOGONAL CONJUGATE OF X11

< 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) { 100, 521 }: Central Line L(100, 521) { 101, 657 }: Central Line L(101, 657) { 109, 901 }: Central Line L(109, 901) { 36, 1110 }: Central Line L(36, 1110) { 60, 1101 }: Central Line L(60, 1101) { 513, 651 }: Central Line L(513, 651) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_521 = ISOGONAL CONJUGATE OF X(108) (1.1224, 0.1534) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_657 = CROSSDIFFERENCE OF X(1) AND X(7) (10.1538, -2.2611) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_901 = ISOGONAL CONJUGATE OF X(900) (1.0000, -0.0000) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_1110 = TRILINEAR SQUARE OF X(101) (0.5057, 0.3942) X_60 = ISOGONAL CONJUGATE OF X(12) (0.5790, 0.2258) X_1101 = TRILINEAR SQUARE OF X(110) (0.5344, 0.4306) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_59 = ISOGONAL CONJUGATE OF X(11) (0.5333, 0.4355) A B C X11 X100 X521 X101 X657 X109 X901 X36 X1110 X60 X1101 X513 X651 X59 (a, b, c) = (5, 6, 7) | AB = 1

X59 (ISOGONAL CONJUGATE OF X11) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_59 = ISOGONAL CONJUGATE OF X_11."""

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


        def construct_x_00059(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_59 = ISOGONAL CONJUGATE OF X_11 on reference triangle ABC."""
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center"])
            X_59 = isogonal_conjugate(model, A, B, C, X_11, ID="X_59", classes=["selected", "target"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            X_521 = eval_trilinear_point(model, A, B, C, '(sec(B) - sec(C))*(csc(A))', ID="X_521", classes=["center", "incident"])
            central_line(model, X_100, X_521, 100, 521, incident=True)
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            X_657 = eval_trilinear_point(model, A, B, C, '(1 + cos(A))*(cos(B) - cos(C))', ID="X_657", classes=["center", "incident"])
            central_line(model, X_101, X_657, 101, 657, incident=True)
            X_109 = eval_trilinear_point(model, A, B, C, 'a/(cos(B) - cos(C))', ID="X_109", classes=["center", "incident"])
            X_901 = eval_trilinear_point(model, A, B, C, 'a/((b - c)*(b + c - 2*a))', ID="X_901", classes=["center", "incident"])
            central_line(model, X_109, X_901, 109, 901, incident=True)
            return promote_point_to_top(model, X_59)


        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_59 on the given reference triangle."""
            model = create_model('X_59 = ISOGONAL CONJUGATE OF X_11')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00059(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-00059.json"))
            write_center_svg(
                model_acute,
                here / "x-00059.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )