X251

ISOGONAL CONJUGATE OF X141

< A B C >: Reference Triangle △ABC < M_a M_b M_c >: Medial Triangle △M_a M_b M_c [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) { 2, 1369 }: Central Line L(2, 1369) { 6, 22 }: Central Line L(6, 22) { 2, 32 }: Central Line L(2, 32) { 37, 82 }: Central Line L(37, 82) { 184, 263 }: Central Line L(184, 263) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) M_a = Midpoint M_a of BC (0.8061, 0.2999) M_b = Midpoint M_b of CA (0.3061, 0.2999) M_c = Midpoint M_c of AB (0.5000, 0.0000) X_2 = CENTROID (0.5374, 0.2000) X_1369 = ANTICOMPLEMENTARY CONJUGATE OF X(6) (0.3769, -0.0086) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_22 = EXETER POINT (0.4143, -0.1221) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_82 = ISOGONAL CONJUGATE OF X(38) (0.5943, 0.2703) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_263 = ISOGONAL CONJUGATE OF X(183) (0.6298, 0.3525) X_251 = ISOGONAL CONJUGATE OF X(141) (0.6177, 0.3042) A B C Ma Mb Mc X2 X1369 X6 X22 X32 X37 X82 X184 X263 X251 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_251 = ISOGONAL CONJUGATE OF X_141."""

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


        def construct_x_00251(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_251 = ISOGONAL CONJUGATE OF X_141 on reference triangle ABC."""
            X_141 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) + c**(2))', ID="X_141", classes=["center"])
            X_251 = isogonal_conjugate(model, A, B, C, X_141, ID="X_251", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_22 = eval_trilinear_point(model, A, B, C, 'a*(b**(4) + c**(4) - a**(4))', ID="X_22", classes=["center", "incident"])
            central_line(model, X_6, X_22, 6, 22, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center", "incident"])
            central_line(model, X_2, X_32, 2, 32, incident=True)
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_82 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2))', ID="X_82", classes=["center", "incident"])
            central_line(model, X_37, X_82, 37, 82, incident=True)
            return promote_point_to_top(model, X_251)


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