X3577

ISOGONAL CONJUGATE OF X3576

< 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) { 21, 40 }: Central Line L(21, 40) { 1, 227 }: Central Line L(1, 227) { 9, 374 }: Central Line L(9, 374) { 7, 515 }: Central Line L(7, 515) { 314, 322 }: Central Line L(314, 322) { 8, 908 }: Central Line L(8, 908) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_2093 = REFLECTION OF X(1) IN X(57) (0.6561, 0.3888) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_40 = BEVAN POINT (0.4286, -0.0292) X_227 = -CEVA CONJUGATE OF X(65) (0.4792, -0.0460) X_9 = MITTENPUNKT (0.5110, 0.1615) X_374 = CENTROID OF THE PEDAL TRIANGLE OF X(9) (0.5449, 0.2238) X_7 = GERGONNE POINT (0.5903, 0.2769) X_515 = ISOGONAL CONJUGATE OF X(102) (0.6804, 0.7691) X_314 = ISOTOMIC CONJUGATE OF X(65) (0.4457, 0.1206) X_322 = ISOTOMIC CONJUGATE OF X(84) (0.3430, -0.0168) X_8 = NAGEL POINT (0.4694, 0.1333) X_908 = POINT ACUBENS (-0.8367, -1.7996) X_3577 = ISOGONAL CONJUGATE OF X(3576) (0.6044, 0.3331) A B C X1 X2093 X21 X40 X227 X9 X374 X7 X515 X314 X322 X8 X908 X3577 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3577 = ISOGONAL CONJUGATE OF X_3576."""

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


        def construct_x_03577(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3577 = ISOGONAL CONJUGATE OF X_3576 on reference triangle ABC."""
            X_3576 = eval_trilinear_point(model, A, B, C, '(3*a - b - c)*(a - b + c)*(a + b - c) - 4*a*b*c', ID="X_3576", classes=["center"])
            X_3577 = isogonal_conjugate(model, A, B, C, X_3576, ID="X_3577", classes=["selected", "target"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            central_line(model, X_21, X_40, 21, 40, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_227 = eval_trilinear_point(model, A, B, C, '((b + c)*(cos(B) + cos(C) - cos(A) - 1)*tan(A/2))', ID="X_227", classes=["center", "incident"])
            central_line(model, X_1, X_227, 1, 227, incident=True)
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_374 = eval_trilinear_point(model, A, B, C, '(2*b + 2*c - 3*a + (c + a)*cos(C) + (b + a)*cos(B))', ID="X_374", classes=["center", "incident"])
            central_line(model, X_9, X_374, 9, 374, incident=True)
            return promote_point_to_top(model, X_3577)


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