X2397

GIBERT-SIMSON TRANSFORM OF X100

X2397 = trilinear pole of line X119X517 (the Simson line of X100)
< 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, 37 }: Central Line L(2, 37) { 190, 644 }: Central Line L(190, 644) { 522, 1026 }: Central Line L(522, 1026) { 666, 2402 }: Central Line L(666, 2402) { 765, 2398 }: Central Line L(765, 2398) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2423 = ISOGONAL CONJUGATE OF X(2397) (1.0250, 0.1225) X_2 = CENTROID (0.5374, 0.2000) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_644 = TRILINEAR MULTIPLIER FOR YFF PARABOLA (-0.0171, 0.3359) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_1026 = INTERSECTION OF LINES X(1)X(2) AND X(100)X(101) (4.1429, 3.7326) X_666 = TRILINEAR POLE OF LINE X(2)X(11) (1.0982, 0.1428) X_2402 = GIBERT-SIMSON TRANSFORM OF X(105) (0.9981, 0.0461) X_765 = CEVAPOINT OF X(1) AND X(100) (0.4286, 0.3110) X_2398 = GIBERT-SIMSON TRANSFORM OF X(101) (1.4898, 1.1331) X_2397 = GIBERT-SIMSON TRANSFORM OF X(100) (4.6735, 3.5993) A B C X2423 X2 X37 X190 X644 X522 X1026 X666 X2402 X765 X2398 X2397 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2397 = GIBERT-SIMSON TRANSFORM OF X_100."""

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


        def construct_x_02397(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2397 = GIBERT-SIMSON TRANSFORM OF X_100 on reference triangle ABC."""
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center"])
            X_190 = eval_trilinear_point(model, A, B, C, 'b*c/(b - c)', ID="X_190", classes=["center"])
            X_644 = eval_trilinear_point(model, A, B, C, '((b + c - a)/(b - c))', ID="X_644", classes=["center"])
            central_line(model, X_2, X_37, 2, 37)
            central_line(model, X_190, X_644, 190, 644)
            X_2397 = intersect_lines(model, X_2, X_37, X_190, X_644, ID="X_2397", classes=["selected", "target"])
            X_522 = eval_trilinear_point(model, A, B, C, '(cos(B) - cos(C))*(csc(A))', ID="X_522", classes=["center", "incident"])
            X_1026 = eval_trilinear_point(model, A, B, C, '((b**(2) + c**(2) - a*(b + c))/(b - c))', ID="X_1026", classes=["center", "incident"])
            central_line(model, X_522, X_1026, 522, 1026, incident=True)
            return promote_point_to_top(model, X_2397)


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