X3523

EULER LINE INTERCEPT OF LINE X35X_390

< 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 { 95, 253 }: Central Line L(95, 253) { 182, 193 }: Central Line L(182, 193) { 35, 390 }: Central Line L(35, 390) { 147, 620 }: Central Line L(147, 620) { 391, 572 }: Central Line L(391, 572) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_4 = ORTHOCENTER (0.6122, 0.3958) X_95 = CEVAPOINT OF CENTROID AND CIRCUMCENTER (0.5172, 0.1562) X_253 = -CROSS CONJUGATE OF X(2) (3.5087, 32.5688) X_182 = MIDPOINT OF BROCARD DIAMETER (0.5500, 0.1846) X_193 = -CEVA CONJUGATE OF X(2) (0.7878, 0.4690) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_390 = REFLECTION OF GERGONNE POINT IN INCENTER (0.5526, 0.1897) X_147 = TARRY POINT OF ANTICOMPLEMENTARY TRIANGLE (-0.1660, 1.0561) X_620 = MIDPOINT OF X(618) AND X(619) (0.4308, 0.2580) X_391 = INTERSECTION OF LINES X(2,6) AND X(8,9) (0.4857, 0.1443) X_572 = ORTHOGONAL OF X(58) (0.5253, 0.1439) X_3523 = EULER LINE INTERCEPT OF LINE X(35)X(390) (0.5160, 0.1440) A B C X2 X3 X4 X95 X253 X182 X193 X35 X390 X147 X620 X391 X572 X3523 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3523 = EULER LINE INTERCEPT OF LINE X_35X_390."""

        from __future__ import annotations

        from pathlib import Path

        import sympy.geometry as spg
        from geometor.model import Model

        from geometor.etc.ops import (
            anticomplement,
            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_03523(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3523 = EULER LINE INTERCEPT OF LINE X_35X_390 on reference triangle ABC."""
            X_3090 = eval_trilinear_point(model, A, B, C, 'sin(B)*sin(C) + cos(B - C)', ID="X_3090", classes=["center"])
            X_3523 = anticomplement(model, A, B, C, X_3090, ID="X_3523", 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_95 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)*sec(B - C)', ID="X_95", classes=["center", "incident"])
            X_253 = eval_trilinear_point(model, A, B, C, '((csc(A))/(tan(B) + tan(C) - tan(A)))', ID="X_253", classes=["center", "incident"])
            central_line(model, X_95, X_253, 95, 253, incident=True)
            X_182 = eval_trilinear_point(model, A, B, C, 'cos(A-  omega  )', ID="X_182", classes=["center", "incident"])
            X_193 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cot(B) + cot(C) - cot(A))', ID="X_193", classes=["center", "incident"])
            central_line(model, X_182, X_193, 182, 193, incident=True)
            return promote_point_to_top(model, X_3523)


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