X598

ISOGONAL CONJUGATE OF X574

< 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) { 2, 187 }: Central Line L(2, 187) { 30, 262 }: Central Line L(30, 262) { 98, 381 }: Central Line L(98, 381) { 4, 575 }: Central Line L(4, 575) { 76, 524 }: Central Line L(76, 524) { 6, 671 }: Central Line L(6, 671) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_574 = HARMONIC OF X(187) (0.5539, 0.1910) X_2 = CENTROID (0.5374, 0.2000) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_262 = ISOGONAL CONJUGATE OF X(182) (0.5893, 0.2856) X_98 = TARRY POINT (0.8891, -0.2281) X_381 = MIDPOINT OF X(2) AND X(4) (0.5748, 0.2979) X_4 = ORTHOCENTER (0.6122, 0.3958) X_575 = ORTHOGONAL OF X(187) (0.5750, 0.2259) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_524 = ISOGONAL CONJUGATE OF X(111) (0.1376, -0.2297) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_671 = TRILINEAR POLE OF LINE X(2)X(523) (0.9639, -0.0323) X_598 = ISOGONAL CONJUGATE OF X(574) (0.5865, 0.2783) A B C X574 X2 X187 X30 X262 X98 X381 X4 X575 X76 X524 X6 X671 X598 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_598 = ISOGONAL CONJUGATE OF X_574."""

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


        def construct_x_00598(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_598 = ISOGONAL CONJUGATE OF X_574 on reference triangle ABC."""
            X_574 = eval_trilinear_point(model, A, B, C, 'a*(a**(2) - 2*b**(2) - 2*c**(2))', ID="X_574", classes=["center"])
            X_598 = isogonal_conjugate(model, A, B, C, X_574, ID="X_598", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_187 = eval_trilinear_point(model, A, B, C, 'a*(2*a**(2) - b**(2) - c**(2))', ID="X_187", classes=["center", "incident"])
            central_line(model, X_2, X_187, 2, 187, incident=True)
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_262 = eval_trilinear_point(model, A, B, C, 'sec(A -  omega  )', ID="X_262", classes=["center", "incident"])
            central_line(model, X_30, X_262, 30, 262, incident=True)
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_381 = eval_trilinear_point(model, A, B, C, '2*cos(B - C) - cos(A)', ID="X_381", classes=["center", "incident"])
            central_line(model, X_98, X_381, 98, 381, incident=True)
            return promote_point_to_top(model, X_598)


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