X2132

EIGENTRANSFORM OF X30

X2132 is the tangential of X74 on the Neuberg cubic (K001).
< 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) { 4, 1138 }: Central Line L(4, 1138) { 30, 2133 }: Central Line L(30, 2133) { 3065, 3466 }: Central Line L(3065, 3466) { 3440, 3441 }: Central Line L(3440, 3441) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_4 = ORTHOCENTER (0.6122, 0.3958) X_1138 = ISOGONAL CONJUGATE OF X(399) (-0.2714, 0.2752) X_2133 = ISOGONAL CONJUGATE OF X(2132) (1.3009, 0.5656) X_3065 = ISOGONAL CONJUGATE OF X(484) (0.8717, -0.1686) X_3466 = ISOGONAL CONJUGATE OF X(3465) (0.6227, -0.5773) X_3440 = -VERTEX CONJUGATE OF X(15) (0.6192, 0.5141) X_3441 = -VERTEX CONJUGATE OF X(16) (-0.3191, 0.5552) X_2132 = EIGENTRANSFORM OF X(30) (1.2703, 0.4856) A B C X30 X74 X4 X1138 X2133 X3065 X3466 X3440 X3441 X2132 (a, b, c) = (5, 6, 7) | AB = 1

X2132 (EIGENTRANSFORM OF X30) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2132 = EIGENTRANSFORM OF X_30."""

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


        def construct_x_02132(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2132 = EIGENTRANSFORM OF X_30 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_1138 = eval_trilinear_point(model, A, B, C, '(1/(5*cos(A) - 4*cos(B)*cos(C) - 8*(cos(A))**(2)*sin(B)*sin(C)))', ID="X_1138", classes=["center"])
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center"])
            X_2133 = point_from_barycentrics(model, A, B, C, -0.66648885, 0.7236793, 0.94280955, ID="X_2133", classes=["center"])
            central_line(model, X_4, X_1138, 4, 1138)
            central_line(model, X_30, X_2133, 30, 2133)
            X_2132 = intersect_lines(model, X_4, X_1138, X_30, X_2133, ID="X_2132", classes=["selected", "target"])
            X_3065 = eval_trilinear_point(model, A, B, C, '(1/(1 + 2*(cos(A) - cos(B) - cos(C))))', ID="X_3065", classes=["center", "incident"])
            X_3466 = point_from_barycentrics(model, A, B, C, 0.75049052, 1.2119032, -0.96239372, ID="X_3466", classes=["center", "incident"])
            central_line(model, X_3065, X_3466, 3065, 3466, incident=True)
            return promote_point_to_top(model, X_2132)


        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_2132 on the given reference triangle."""
            model = create_model('X_2132 = EIGENTRANSFORM OF X_30')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02132(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-02132.json"))
            write_center_svg(
                model_acute,
                here / "x-02132.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )