X949

ISOGONAL CONJUGATE OF X948

< 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) { 3, 41 }: Central Line L(3, 41) { 6, 77 }: Central Line L(6, 77) { 2, 294 }: Central Line L(2, 294) { 78, 220 }: Central Line L(78, 220) { 1, 607 }: Central Line L(1, 607) { 48, 1037 }: Central Line L(48, 1037) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_948 = INTERSECTION OF LINES X(1)X(4) AND X(6)X(7) (0.5840, 0.2831) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_2 = CENTROID (0.5374, 0.2000) X_294 = ISOGONAL CONJUGATE OF X(241) (0.9276, -0.0575) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_1 = INCENTER (0.5714, 0.2333) X_607 = ISOGONAL CONJUGATE OF X(348) (0.6187, 0.3865) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_1037 = CEVAPOINT OF X(55) AND X(56) (0.5823, 0.2853) X_949 = ISOGONAL CONJUGATE OF X(948) (0.5571, 0.1869) A B C X948 X3 X41 X6 X77 X2 X294 X78 X220 X1 X607 X48 X1037 X949 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_949 = ISOGONAL CONJUGATE OF X_948."""

        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,
            centroid_of,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            isogonal_conjugate,
            point_from_barycentrics,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00949(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_949 = ISOGONAL CONJUGATE OF X_948 on reference triangle ABC."""
            X_948 = point_from_barycentrics(model, A, B, C, 0.23303835, 0.29498525, 0.4719764, ID="X_948", classes=["center"])
            X_949 = isogonal_conjugate(model, A, B, C, X_948, ID="X_949", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center", "incident"])
            central_line(model, X_3, X_41, 3, 41, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_77 = eval_trilinear_point(model, A, B, C, '1/(1 + sec(A))', ID="X_77", classes=["center", "incident"])
            central_line(model, X_6, X_77, 6, 77, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_294 = eval_trilinear_point(model, A, B, C, '((b + c - a)/(b**(2) + c**(2) - a*b - a*c))', ID="X_294", classes=["center", "incident"])
            central_line(model, X_2, X_294, 2, 294, incident=True)
            return promote_point_to_top(model, X_949)


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