X1820

ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X264

X1820 is the isogonal conjugate of mimosa transform of X264.
< 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) { 19, 91 }: Central Line L(19, 91) { 68, 71 }: Central Line L(68, 71) { 1, 563 }: Central Line L(1, 563) { 1400, 1454 }: Central Line L(1400, 1454) { 1760, 1821 }: Central Line L(1760, 1821) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1748 = MIMOSA TRANSFORM OF X(264) (0.6706, 0.5179) X_19 = CLAWSON POINT (0.6246, 0.4244) X_91 = ISOGONAL CONJUGATE OF X(47) (-0.0865, -0.0205) X_68 = PRASOLOV POINT (-0.0535, -0.0055) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_1 = INCENTER (0.5714, 0.2333) X_563 = TRILINEAR PRODUCT X(47)*X(48) (0.8122, 0.3243) X_1400 = -BETH CONJUGATE OF X(37) (0.6246, 0.3268) X_1454 = -BETH CONJUGATE OF X(498) (0.6215, 0.3253) X_1760 = MIMOSA TRANSFORM OF X(305) (0.3719, -0.0901) X_1821 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X(287) (0.8340, -0.1768) X_1820 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X(264) (-0.0663, -0.0078) A B C X1748 X19 X91 X68 X71 X1 X563 X1400 X1454 X1760 X1821 X1820 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1820 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X_264."""

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


        def construct_x_01820(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1820 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X_264 on reference triangle ABC."""
            X_1748 = eval_trilinear_point(model, A, B, C, 'cot(A) - tan(A)', ID="X_1748", classes=["center"])
            X_1820 = isogonal_conjugate(model, A, B, C, X_1748, ID="X_1820", classes=["selected", "target"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_91 = eval_trilinear_point(model, A, B, C, 'sec(2*A)', ID="X_91", classes=["center", "incident"])
            central_line(model, X_19, X_91, 19, 91, incident=True)
            X_68 = eval_trilinear_point(model, A, B, C, 'cos(A)*sec(2*A)', ID="X_68", classes=["center", "incident"])
            X_71 = eval_trilinear_point(model, A, B, C, '(b + c)*cos(A)', ID="X_71", classes=["center", "incident"])
            central_line(model, X_68, X_71, 68, 71, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_563 = eval_trilinear_point(model, A, B, C, 'sin(4*A)', ID="X_563", classes=["center", "incident"])
            central_line(model, X_1, X_563, 1, 563, incident=True)
            return promote_point_to_top(model, X_1820)


        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_1820 on the given reference triangle."""
            model = create_model('X_1820 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X_264')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01820(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-01820.json"))
            write_center_svg(
                model_acute,
                here / "x-01820.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )