X2950

EXCENTRAL-ISOGONAL CONJUGATE OF X36

X2950 is the excentral-isogonal conjugate of X36.
< 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, 104 }: Central Line L(1, 104) { 9, 119 }: Central Line L(9, 119) { 84, 952 }: Central Line L(84, 952) { 40, 1145 }: Central Line L(40, 1145) { 100, 1490 }: Central Line L(100, 1490) { 57, 1537 }: Central Line L(57, 1537) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_1 = INCENTER (0.5714, 0.2333) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_9 = MITTENPUNKT (0.5110, 0.1615) X_119 = FEUERBACH ANTIPODE (0.3776, 0.4312) X_84 = ISOGONAL CONJUGATE OF X(40) (0.6071, 0.6816) X_952 = INTERSECTION OF X(1)X(5) AND X(3)X(8) (0.1267, 0.6191) X_40 = BEVAN POINT (0.4286, -0.0292) X_1145 = 3rd EHRMANN POINT (0.3061, 0.2999) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_1490 = ∩X(3)X(9) (0.3929, -0.4775) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_1537 = ORTHOJOIN OF X(44) (0.4490, 0.5624) X_2950 = EXCENTRAL-ISOGONAL CONJUGATE OF X(36) (-0.1071, 1.4106) A B C X36 X1 X104 X9 X119 X84 X952 X40 X1145 X100 X1490 X57 X1537 X2950 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2950 = EXCENTRAL-ISOGONAL CONJUGATE OF X_36."""

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


        def construct_x_02950(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2950 = EXCENTRAL-ISOGONAL CONJUGATE OF X_36 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_104 = eval_trilinear_point(model, A, B, C, '1/(-1 + cos(B) + cos(C))', ID="X_104", classes=["center"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center"])
            X_119 = eval_trilinear_point(model, A, B, C, '(csc(A))*(-1 + cos(B) + cos(C))*(sin(2*B) + sin(2*C) + 2*(-1 + cos(A))*(sin(B) + sin(C)))', ID="X_119", classes=["center"])
            central_line(model, X_1, X_104, 1, 104)
            central_line(model, X_9, X_119, 9, 119)
            X_2950 = intersect_lines(model, X_1, X_104, X_9, X_119, ID="X_2950", classes=["selected", "target"])
            X_84 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A) - 1)', ID="X_84", classes=["center", "incident"])
            X_952 = eval_trilinear_point(model, A, B, C, 'b*c*(2*a**(4) - 2*a**(3)*(b + c) - a**(2)*(b**(2) - 4*b*c + c**(2)) + (2*a - b - c)*(b - c)*(b**(2) - c**(2)))', ID="X_952", classes=["center", "incident"])
            central_line(model, X_84, X_952, 84, 952, incident=True)
            return promote_point_to_top(model, X_2950)


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