X2400

GIBERT-SIMSON TRANSFORM OF X103

< 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) { 7, 522 }: Central Line L(7, 522) { 103, 675 }: Central Line L(103, 675) { 677, 883 }: Central Line L(677, 883) { 673, 918 }: Central Line L(673, 918) { 693, 1088 }: Central Line L(693, 1088) { 86, 2424 }: Central Line L(86, 2424) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2426 = ISOGONAL CONJUGATE OF X(2400) (0.9279, 0.7503) X_7 = GERGONNE POINT (0.5903, 0.2769) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_675 = TRILINEAR POLE OF LINE X(6)X(514) (0.9212, -0.1860) X_677 = TRILINEAR POLE OF LINE X(3)X(101) (1.3200, 0.4790) X_883 = INTERSECTION OF LINES X(7)X(8) AND X(190)X(644) (1.5694, 1.4397) X_673 = TRILINEAR POLE OF LINE X(1)X(514) (0.9471, -0.0769) X_918 = ISOTOMIC CONJUGATE OF X(666) (1.0192, 0.5351) X_693 = ISOTOMIC CONJUGATE OF X(100) (-25.8163, 8.9981) X_1088 = TRILINEAR SQUARE OF X(7) (0.6052, 0.3210) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_2424 = ISOGONAL CONJUGATE OF X(2398) (1.0916, 0.1371) X_2400 = GIBERT-SIMSON TRANSFORM OF X(103) (1.2261, 0.1171) A B C X2426 X7 X522 X103 X675 X677 X883 X673 X918 X693 X1088 X86 X2424 X2400 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2400 = GIBERT-SIMSON TRANSFORM OF X_103."""

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


        def construct_x_02400(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2400 = GIBERT-SIMSON TRANSFORM OF X_103 on reference triangle ABC."""
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_522 = eval_trilinear_point(model, A, B, C, '(cos(B) - cos(C))*(csc(A))', ID="X_522", classes=["center"])
            X_103 = eval_trilinear_point(model, A, B, C, 'a/((a - b)*cot(C) + (a - c)*cot(B))', ID="X_103", classes=["center"])
            X_675 = eval_trilinear_point(model, A, B, C, '(b*c/(b**(3) + c**(3) - a*(b**(2) + c**(2))))', ID="X_675", classes=["center"])
            central_line(model, X_7, X_522, 7, 522)
            central_line(model, X_103, X_675, 103, 675)
            X_2400 = intersect_lines(model, X_7, X_522, X_103, X_675, ID="X_2400", classes=["selected", "target"])
            X_677 = eval_trilinear_point(model, A, B, C, '(a/((b - c)*(b**(3) + c**(3) - 2*a**(3) + (b + c)*(a**(2) - b*c))))', ID="X_677", classes=["center", "incident"])
            X_883 = point_from_barycentrics(model, A, B, C, -1.5, 0.1, 2.4, ID="X_883", classes=["center", "incident"])
            central_line(model, X_677, X_883, 677, 883, incident=True)
            return promote_point_to_top(model, X_2400)


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