X2409

GIBERT-SIMSON TRANSFORM OF X112

< 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) { 2, 3 }: Euler Line { 107, 112 }: Central Line L(107, 112) { 110, 1289 }: Central Line L(110, 1289) { 99, 1301 }: Central Line L(99, 1301) { 935, 1304 }: Central Line L(935, 1304) { 250, 2407 }: Central Line L(250, 2407) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2435 = ISOGONAL CONJUGATE OF X(2409) (2.8968, 0.1781) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_107 = Ψ(SYMMEDIAN POINT, ORTHOCENTER) (0.5733, 0.6071) X_112 = Ψ(ORTHOCENTER, SYMMEDIAN POINT) (0.5162, 0.6121) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_1289 = COLLINGS TRANSFORM OF X(25) (0.6436, 0.5918) X_99 = STEINER POINT (0.1109, 0.4322) X_1301 = COLLINGS TRANSFORM OF X(235) (0.6568, 0.5877) X_935 = POINT ALCOR (0.8281, 0.4929) X_1304 = COLLINGS TRANSFORM OF X(403) (0.7822, 0.5273) X_250 = ISOGONAL CONJUGATE OF X(125) (0.5892, 0.5347) X_2407 = GIBERT-SIMSON TRANSFORM OF X(110) (1.2056, 0.9180) X_2409 = GIBERT-SIMSON TRANSFORM OF X(112) (0.6891, 0.5969) A B C X2435 X2 X3 X107 X112 X110 X1289 X99 X1301 X935 X1304 X250 X2407 X2409 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2409 = GIBERT-SIMSON TRANSFORM OF X_112."""

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


        def construct_x_02409(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2409 = GIBERT-SIMSON TRANSFORM OF X_112 on reference triangle ABC."""
            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"])
            X_107 = eval_trilinear_point(model, A, B, C, '1/(cos(A)*(sin(2*B) - sin(2*C)))', ID="X_107", classes=["center"])
            X_112 = eval_trilinear_point(model, A, B, C, 'a/(sin(2*B) - sin(2*C))', ID="X_112", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            central_line(model, X_107, X_112, 107, 112)
            X_2409 = intersect_lines(model, X_2, X_3, X_107, X_112, ID="X_2409", classes=["selected", "target"])
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            X_1289 = eval_trilinear_point(model, A, B, C, 'tan(A)*csc(B - C)/(sin(2*A) - tan(omega)  )', ID="X_1289", classes=["center", "incident"])
            central_line(model, X_110, X_1289, 110, 1289, incident=True)
            return promote_point_to_top(model, X_2409)


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