X2394

GIBERT-SIMSON TRANSFORM OF X74

< 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) { 74, 98 }: Central Line L(74, 98) { 2, 525 }: Central Line L(2, 525) { 4, 523 }: Central Line L(4, 523) { 671, 1494 }: Central Line L(671, 1494) { 935, 1304 }: Central Line L(935, 1304) { 2407, 2410 }: Central Line L(2407, 2410) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2420 = ISOGONAL CONJUGATE OF X(2394) (0.8593, 0.6954) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_98 = TARRY POINT (0.8891, -0.2281) X_2 = CENTROID (0.5374, 0.2000) X_525 = ISOGONAL CONJUGATE OF X(112) (-0.0468, 0.2556) X_4 = ORTHOCENTER (0.6122, 0.3958) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_671 = TRILINEAR POLE OF LINE X(2)X(523) (0.9639, -0.0323) X_1494 = ISOTOMIC CONJUGATE OF X(30) (0.6185, -0.1856) X_935 = POINT ALCOR (0.8281, 0.4929) X_1304 = COLLINGS TRANSFORM OF X(403) (0.7822, 0.5273) X_2407 = GIBERT-SIMSON TRANSFORM OF X(110) (1.2056, 0.9180) X_2410 = GIBERT-SIMSON TRANSFORM OF X(476) (1.4235, -0.5988) X_2394 = GIBERT-SIMSON TRANSFORM OF X(74) (1.3195, 0.1255) A B C X2420 X74 X98 X2 X525 X4 X523 X671 X1494 X935 X1304 X2407 X2410 X2394 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2394 = GIBERT-SIMSON TRANSFORM OF X_74."""

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


        def construct_x_02394(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2394 = GIBERT-SIMSON TRANSFORM OF X_74 on reference triangle ABC."""
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_525 = eval_trilinear_point(model, A, B, C, '(b*cos(B) - c*cos(C))/a', ID="X_525", classes=["center"])
            central_line(model, X_74, X_98, 74, 98)
            central_line(model, X_2, X_525, 2, 525)
            X_2394 = intersect_lines(model, X_74, X_98, X_2, X_525, ID="X_2394", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_523 = eval_trilinear_point(model, A, B, C, 'sin(B -C)', ID="X_523", classes=["center", "incident"])
            central_line(model, X_4, X_523, 4, 523, incident=True)
            return promote_point_to_top(model, X_2394)


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