X884

ISOGONAL CONJUGATE OF X883

< 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) { 31, 649 }: Central Line L(31, 649) { 41, 663 }: Central Line L(41, 663) { 55, 650 }: Central Line L(55, 650) { 56, 667 }: Central Line L(56, 667) { 105, 659 }: Central Line L(105, 659) { 21, 885 }: Central Line L(21, 885) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_883 = INTERSECTION OF LINES X(7)X(8) AND X(190)X(644) (1.5694, 1.4397) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_649 = CROSSDIFFERENCE OF X(1) and X(2) (-21.0000, 14.6969) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_663 = CROSSDIFFERENCE OF X(2) AND X(7) (8.6667, -3.2660) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_650 = CROSSDIFFERENCE OF X(1) AND X(3) (13.7143, -4.1991) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_667 = CROSSDIFFERENCE OF X(2) AND X(37) (-6.1667, 5.7155) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_659 = CROSSDIFFERENCE OF X(1) AND X(39) (1.9286, 2.2162) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_885 = ISOTOMIC CONJUGATE OF X(883) (1.0518, 0.0256) X_884 = ISOGONAL CONJUGATE OF X(883) (1.0241, 0.0337) A B C X883 X31 X649 X41 X663 X55 X650 X56 X667 X105 X659 X21 X885 X884 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_884 = ISOGONAL CONJUGATE OF X_883."""

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


        def construct_x_00884(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_884 = ISOGONAL CONJUGATE OF X_883 on reference triangle ABC."""
            X_883 = point_from_barycentrics(model, A, B, C, -1.5, 0.1, 2.4, ID="X_883", classes=["center"])
            X_884 = isogonal_conjugate(model, A, B, C, X_883, ID="X_884", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_649 = eval_trilinear_point(model, A, B, C, 'a*(b - c)', ID="X_649", classes=["center", "incident"])
            central_line(model, X_31, X_649, 31, 649, incident=True)
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center", "incident"])
            X_663 = eval_trilinear_point(model, A, B, C, 'a*(b - c)*(b + c - a)', ID="X_663", classes=["center", "incident"])
            central_line(model, X_41, X_663, 41, 663, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_650 = eval_trilinear_point(model, A, B, C, 'cos(B) - cos(C)', ID="X_650", classes=["center", "incident"])
            central_line(model, X_55, X_650, 55, 650, incident=True)
            return promote_point_to_top(model, X_884)


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