X1782

MIMOSA TRANSFORM OF X1257

< 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) { 8, 20 }: Central Line L(8, 20) { 19, 46 }: Central Line L(19, 46) { 58, 65 }: Central Line L(58, 65) { 71, 191 }: Central Line L(71, 191) { 4, 1726 }: Central Line L(4, 1726) { 10, 1762 }: Central Line L(10, 1762) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_8 = NAGEL POINT (0.4694, 0.1333) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_19 = CLAWSON POINT (0.6246, 0.4244) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_191 = -CEVA CONJUGATE OF X(1) (0.4859, 0.1209) X_4 = ORTHOCENTER (0.6122, 0.3958) X_1726 = MIMOSA TRANSFORM OF X(75) (0.5578, 0.3872) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_1762 = MIMOSA TRANSFORM OF X(307) (0.5223, 0.2162) X_1782 = MIMOSA TRANSFORM OF X(1257) (0.5322, 0.3832) A B C X8 X20 X19 X46 X58 X65 X71 X191 X4 X1726 X10 X1762 X1782 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1782 = MIMOSA TRANSFORM OF X_1257."""

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


        def construct_x_01782(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1782 = MIMOSA TRANSFORM OF X_1257 on reference triangle ABC."""
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center"])
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center"])
            central_line(model, X_8, X_20, 8, 20)
            central_line(model, X_19, X_46, 19, 46)
            X_1782 = intersect_lines(model, X_8, X_20, X_19, X_46, ID="X_1782", classes=["selected", "target"])
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_58, X_65, 58, 65, incident=True)
            return promote_point_to_top(model, X_1782)


        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_1782 on the given reference triangle."""
            model = create_model('X_1782 = MIMOSA TRANSFORM OF X_1257')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01782(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-01782.json"))
            write_center_svg(
                model_acute,
                here / "x-01782.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )