X2042

2nd EULER-VECTEN-GIBERT POINT

X2042 = reflection of X2041 in X382
< 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) { 2041, 382 }: Euler Line { 2, 3 }: Euler Line { 15, 486 }: Central Line L(15, 486) { 16, 485 }: Central Line L(16, 485) { 489, 621 }: Central Line L(489, 621) { 490, 622 }: Central Line L(490, 622) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2041 = 1st EULER-VECTEN-GIBERT POINT (0.9189, 1.1981) X_382 = REFLECTION OF CIRCUMCENTER IN ORTHOCENTER (0.7245, 0.6894) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_15 = 1st ISODYNAMIC POINT (0.5519, 0.1878) X_486 = INNER VECTEN POINT (-0.0810, -0.0170) X_16 = 2nd ISODYNAMIC POINT (1.8453, 2.3239) X_485 = VECTEN POINT (0.5773, 0.2578) X_489 = CEVAPOINT OF X(20) AND X(487) (0.4404, 0.3605) X_621 = ANTICOMPLEMENT OF X(15) (0.5084, 0.2242) X_490 = CEVAPOINT OF X(20) AND X(488) (0.4037, -0.0241) X_622 = ANTICOMPLEMENT OF X(16) (-2.0784, -4.0479) X_2042 = 2nd EULER-VECTEN-GIBERT POINT (0.5301, 0.1808) A B C X2041 X382 X2 X3 X15 X486 X16 X485 X489 X621 X490 X622 X2042 (a, b, c) = (5, 6, 7) | AB = 1

X2042 (2nd EULER-VECTEN-GIBERT POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2042 = 2nd EULER-VECTEN-GIBERT POINT."""

        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,
            centroid_of,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            promote_point_to_top,
            reflection_in_point,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02042(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2042 = 2nd EULER-VECTEN-GIBERT POINT on reference triangle ABC."""
            X_2041 = eval_trilinear_point(model, A, B, C, '(b*c*((b**(2) - c**(2))**(2) - a**(2)*(b**(2) + c**(2)) + 3**(1/2)*a**(2)*(b**(2) + c**(2) - a**(2))))', ID="X_2041", classes=["center"])
            X_382 = eval_trilinear_point(model, A, B, C, 'cos(A) - 4*cos(B)*cos(C)', ID="X_382", classes=["center"])
            X_2042 = reflection_in_point(model, X_2041, X_382, ID="X_2042", classes=["selected", "target"], guide=False)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_15 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /3)', ID="X_15", classes=["center", "incident"])
            X_486 = eval_trilinear_point(model, A, B, C, 'sec(A +  pi  /4)', ID="X_486", classes=["center", "incident"])
            central_line(model, X_15, X_486, 15, 486, incident=True)
            X_16 = eval_trilinear_point(model, A, B, C, 'sin(A-  pi  /3)', ID="X_16", classes=["center", "incident"])
            X_485 = eval_trilinear_point(model, A, B, C, 'sec(A -  pi  /4)', ID="X_485", classes=["center", "incident"])
            central_line(model, X_16, X_485, 16, 485, incident=True)
            return promote_point_to_top(model, X_2042)


        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_2042 on the given reference triangle."""
            model = create_model('X_2042 = 2nd EULER-VECTEN-GIBERT POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02042(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-02042.json"))
            write_center_svg(
                model_acute,
                here / "x-02042.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )