X2957

EXCENTRAL-ISOGONAL CONJUGATE OF X100

X2957 is the excentral-isogonal conjugate of X100.
< 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, 59 }: Central Line L(1, 59) { 238, 517 }: Central Line L(238, 517) { 484, 516 }: Central Line L(484, 516) { 655, 1090 }: Central Line L(655, 1090) { 36, 1736 }: Central Line L(36, 1736) { 5, 2607 }: Central Line L(5, 2607) 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_1 = INCENTER (0.5714, 0.2333) X_59 = ISOGONAL CONJUGATE OF X(11) (0.5333, 0.4355) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_484 = 1st EVANS PERSPECTOR (2.0952, 3.0327) X_516 = ISOGONAL CONJUGATE OF X(103) (0.7703, 0.7386) X_655 = TRILINEAR POLE OF LINE X(1)X(5) (1.0449, 0.2400) X_1090 = TRILINEAR SQUARE OF X(11) (0.8768, 0.0123) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_1736 = MIMOSA TRANSFORM OF X(103) (1.0370, 0.7863) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_2607 = CROSSDIFFERENCE OF PU(70) (0.5584, 0.2383) X_2957 = EXCENTRAL-ISOGONAL CONJUGATE OF X(100) (0.6667, -0.2722) A B C X11 X1 X59 X238 X517 X484 X516 X655 X1090 X36 X1736 X5 X2607 X2957 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2957 = EXCENTRAL-ISOGONAL CONJUGATE OF 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,
            ceva_conjugate,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            feuerbach_point_of,
            incenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02957(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2957 = EXCENTRAL-ISOGONAL CONJUGATE OF X_100 on reference triangle ABC."""
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_2957 = ceva_conjugate(model, A, B, C, X_11, X_1, ID="X_2957", classes=["selected", "target"])
            X_59 = eval_trilinear_point(model, A, B, C, '1/(1 - cos(B - C))', ID="X_59", classes=["center", "incident"])
            central_line(model, X_1, X_59, 1, 59, incident=True)
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            X_517 = eval_trilinear_point(model, A, B, C, '-1 + cos(B) + cos(C)', ID="X_517", classes=["center", "incident"])
            central_line(model, X_238, X_517, 238, 517, incident=True)
            X_484 = eval_trilinear_point(model, A, B, C, '1 + 2*(cos(A) - cos(B) - cos(C))', ID="X_484", classes=["center", "incident"])
            X_516 = eval_trilinear_point(model, A, B, C, 'b*c*((a - b)*cot(C) + (a - c)*cot(B))', ID="X_516", classes=["center", "incident"])
            central_line(model, X_484, X_516, 484, 516, incident=True)
            return promote_point_to_top(model, X_2957)


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