X913

POINT AGENA

< 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, 101 }: Central Line L(19, 101) { 27, 662 }: Central Line L(27, 662) { 25, 692 }: Central Line L(25, 692) { 571, 608 }: Central Line L(571, 608) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_914 = ISOGONAL CONJUGATE OF X(913) (-2.5447, -1.0613) X_19 = CLAWSON POINT (0.6246, 0.4244) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_27 = CEVAPOINT OF ORTHOCENTER AND CLAWSON CENTER (0.6182, 0.4112) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_692 = -CEVA CONJUGATE OF X(101) (0.2833, 0.5715) X_571 = ORTHOHARMONIC OF X(52) (0.7141, 0.4556) X_608 = ISOGONAL CONJUGATE OF X(345) (0.6361, 0.4975) X_913 = POINT AGENA (0.8959, 0.3579) A B C X914 X19 X101 X27 X662 X25 X692 X571 X608 X913 (a, b, c) = (5, 6, 7) | AB = 1

X913 (POINT AGENA) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_913 = POINT AGENA."""

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


        def construct_x_00913(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_913 = POINT AGENA on reference triangle ABC."""
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center"])
            X_27 = eval_trilinear_point(model, A, B, C, '(sec(A))/(b + c)', ID="X_27", classes=["center"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center"])
            central_line(model, X_19, X_101, 19, 101)
            central_line(model, X_27, X_662, 27, 662)
            X_913 = intersect_lines(model, X_19, X_101, X_27, X_662, ID="X_913", classes=["selected", "target"])
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_692 = eval_trilinear_point(model, A, B, C, 'a**(2)/(b - c)', ID="X_692", classes=["center", "incident"])
            central_line(model, X_25, X_692, 25, 692, incident=True)
            return promote_point_to_top(model, X_913)


        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_913 on the given reference triangle."""
            model = create_model('X_913 = POINT AGENA')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00913(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-00913.json"))
            write_center_svg(
                model_acute,
                here / "x-00913.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )