X383

EULER LINE INTERCEPT OF LINE X14X_98

X383 = reflection of X1080 in X1513
< 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) { 1080, 1513 }: Euler Line { 2, 3 }: Euler Line { 14, 98 }: Central Line L(14, 98) { 13, 262 }: Central Line L(13, 262) { 183, 621 }: Central Line L(183, 621) { 299, 511 }: Central Line L(299, 511) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1080 = INTERCEPT OF EULER LINE AND LINE (13)X(98) (0.5763, 0.3016) X_1513 = ORTHOJOIN OF X(2) (1.0602, 1.5678) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_14 = 2nd ISOGONIC CENTER (0.9134, -0.1143) X_98 = TARRY POINT (0.8891, -0.2281) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_262 = ISOGONAL CONJUGATE OF X(182) (0.5893, 0.2856) X_183 = TRILINEAR PRODUCT X(75)X(182) (0.4700, 0.1275) X_621 = ANTICOMPLEMENT OF X(15) (0.5084, 0.2242) X_299 = ISOTOMIC CONJUGATE OF 2nd ISOGONIC CENTER (-1.1465, -1.6097) X_511 = ISOGONAL CONJUGATE OF X(98) (0.2335, -0.3020) X_383 = EULER LINE INTERCEPT OF LINE X(14)X(98) (1.5441, 2.8340) A B C X1080 X1513 X2 X3 X14 X98 X13 X262 X183 X621 X299 X511 X383 (a, b, c) = (5, 6, 7) | AB = 1

X383 (EULER LINE INTERCEPT OF LINE X14X_98) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_383 = EULER LINE INTERCEPT OF LINE X_14X_98."""

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


        def construct_x_00383(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_383 = EULER LINE INTERCEPT OF LINE X_14X_98 on reference triangle ABC."""
            X_383 = eval_trilinear_point(model, A, B, C, '(csc(B - C)*(sin(2*B)*cos(C -  omega  )*sin(C +  pi  /3) - sin(2*C)*cos(B -  omega  )*sin(B +  pi  /3)))', ID="X_383", classes=["selected", "target"])
            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"])
            central_line(model, X_2, X_3, 2, 3)
            X_14 = eval_trilinear_point(model, A, B, C, 'csc(A -  pi  /3)', ID="X_14", classes=["center", "incident"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            central_line(model, X_14, X_98, 14, 98, incident=True)
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            X_262 = eval_trilinear_point(model, A, B, C, 'sec(A -  omega  )', ID="X_262", classes=["center", "incident"])
            central_line(model, X_13, X_262, 13, 262, incident=True)
            return promote_point_to_top(model, X_383)


        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_383 on the given reference triangle."""
            model = create_model('X_383 = EULER LINE INTERCEPT OF LINE X_14X_98')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00383(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-00383.json"))
            write_center_svg(
                model_acute,
                here / "x-00383.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )