X905

POINT ACHERNAR

< 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) { 36, 238 }: Central Line L(36, 238) { 241, 514 }: Central Line L(241, 514) { 441, 525 }: Central Line L(441, 525) { 521, 656 }: Central Line L(521, 656) { 1053, 1054 }: Central Line L(1053, 1054) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1783 = MIMOSA TRANSFORM OF X(1262) (0.4733, 0.5954) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_241 = -LINE CONJUGATE OF X(55) (1.1217, 1.2442) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_441 = COMPLEMENT OF X(297) (0.3841, -0.2011) X_525 = ISOGONAL CONJUGATE OF X(112) (-0.0468, 0.2556) X_521 = ISOGONAL CONJUGATE OF X(108) (1.1224, 0.1534) X_656 = CROSSDIFFERENCE OF X(1) AND X(19) (7.5714, -0.8554) X_1053 = POINT ALHENA (0.7302, -0.1555) X_1054 = 6th SHARYGIN POINT (1.4286, -0.2333) X_905 = POINT ACHERNAR (5.6190, -0.6999) A B C X1783 X36 X238 X241 X514 X441 X525 X521 X656 X1053 X1054 X905 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_905 = POINT ACHERNAR."""

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


        def construct_x_00905(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_905 = POINT ACHERNAR on reference triangle ABC."""
            X_905 = eval_trilinear_point(model, A, B, C, '(b - c)*cot(A)', ID="X_905", classes=["selected", "target"])
            X_36 = eval_trilinear_point(model, A, B, C, '1 - 2*cos(A)', ID="X_36", classes=["center", "incident"])
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            central_line(model, X_36, X_238, 36, 238, incident=True)
            X_241 = eval_trilinear_point(model, A, B, C, '(cos(B/2))**(4) - ((cos(A/2))**(2))*((cos(B/2))**(2) +(cos(C/2))**(2)) + (cos(C/2))**(4)', ID="X_241", classes=["center", "incident"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center", "incident"])
            central_line(model, X_241, X_514, 241, 514, incident=True)
            X_441 = point_from_barycentrics(model, A, B, C, 0.74590002, 0.58940921, -0.33530923, ID="X_441", classes=["center", "incident"])
            X_525 = eval_trilinear_point(model, A, B, C, '(b*cos(B) - c*cos(C))/a', ID="X_525", classes=["center", "incident"])
            central_line(model, X_441, X_525, 441, 525, incident=True)
            return promote_point_to_top(model, X_905)


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