X2419

GIBERT-SIMSON TRANSFORM OF X1297

X2419 = trilinear pole of line X127X525 (the Simson line of X1297)
< 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) { 253, 523 }: Central Line L(253, 523) { 1297, 2373 }: Central Line L(1297, 2373) { 69, 2435 }: Central Line L(69, 2435) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2445 = ISOGONAL CONJUGATE OF X(2419) (0.6577, 0.5878) X_253 = -CROSS CONJUGATE OF X(2) (3.5087, 32.5688) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_1297 = COLLINGS TRANSFORM OF X(127) (0.4838, -0.4080) X_2373 = CIR(X(67)) (0.5684, -0.4036) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_2435 = ISOGONAL CONJUGATE OF X(2409) (2.8968, 0.1781) X_2419 = GIBERT-SIMSON TRANSFORM OF X(1297) (79.2052, 3.6384) A B C X2445 X253 X523 X1297 X2373 X69 X2435 X2419 (a, b, c) = (5, 6, 7) | AB = 1

X2419 (GIBERT-SIMSON TRANSFORM OF X1297) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2419 = GIBERT-SIMSON TRANSFORM OF X_1297."""

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


        def construct_x_02419(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2419 = GIBERT-SIMSON TRANSFORM OF X_1297 on reference triangle ABC."""
            X_253 = eval_trilinear_point(model, A, B, C, '((csc(A))/(tan(B) + tan(C) - tan(A)))', ID="X_253", classes=["center"])
            X_523 = eval_trilinear_point(model, A, B, C, 'sin(B -C)', ID="X_523", classes=["center"])
            X_1297 = eval_trilinear_point(model, A, B, C, '(a/(b**(6) + c**(6) - 2*a**(6) + a**(4)*b**(2) + a**(4)*c**(2) - b**(4)*c**(2) - b**(2)*c**(4)))', ID="X_1297", classes=["center"])
            X_2373 = point_from_barycentrics(model, A, B, C, 0.69246829, 0.98040184, -0.67287013, ID="X_2373", classes=["center"])
            central_line(model, X_253, X_523, 253, 523)
            central_line(model, X_1297, X_2373, 1297, 2373)
            X_2419 = intersect_lines(model, X_253, X_523, X_1297, X_2373, ID="X_2419", classes=["selected", "target"])
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            X_2435 = point_from_barycentrics(model, A, B, C, -2.0119632, 2.7150562, 0.29690708, ID="X_2435", classes=["center", "incident"])
            central_line(model, X_69, X_2435, 69, 2435, incident=True)
            return promote_point_to_top(model, X_2419)


        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_2419 on the given reference triangle."""
            model = create_model('X_2419 = GIBERT-SIMSON TRANSFORM OF X_1297')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02419(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-02419.json"))
            write_center_svg(
                model_acute,
                here / "x-02419.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )