X3580

INTERSECTION OF LINES X2X_6 AND X30X_74

< 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, 6 }: Centroid–Symmedian Line { 24, 68 }: Central Line L(24, 68) { 30, 74 }: Central Line L(30, 74) { 113, 403 }: Central Line L(113, 403) { 5, 568 }: Central Line L(5, 568) { 110, 468 }: Central Line L(110, 468) 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_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_68 = PRASOLOV POINT (-0.0535, -0.0055) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_113 = JERABEK ANTIPODE (0.4319, 0.4718) X_403 = OF THE ORTHIC TRIANGLE (0.7040, 0.6358) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_568 = ORTHOHARMONIC OF X(50) (0.6437, 0.3393) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_468 = -LINE CONJUGATE OF X(3) (0.7498, 0.7558) X_3580 = INTERSECTION OF LINES X(2)X(6) AND X(30)X(74) (1.2481, 0.9637) A B C X2 X6 X24 X68 X30 X74 X113 X403 X5 X568 X110 X468 X3580 (a, b, c) = (5, 6, 7) | AB = 1

X3580 (INTERSECTION OF LINES X2X_6 AND X30X_74) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3580 = INTERSECTION OF LINES X_2X_6 AND X_30X_74."""

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


        def construct_x_03580(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3580 = INTERSECTION OF LINES X_2X_6 AND X_30X_74 on reference triangle ABC."""
            X_2986 = eval_barycentric_point(model, A, B, C, '1/(1 + cos(2*B) + cos(2*C))', ID="X_2986", classes=["center"])
            X_3580 = isotomic_conjugate(model, A, B, C, X_2986, ID="X_3580", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_2, X_6, 2, 6, incident=True)
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center", "incident"])
            X_68 = eval_trilinear_point(model, A, B, C, 'cos(A)*sec(2*A)', ID="X_68", classes=["center", "incident"])
            central_line(model, X_24, X_68, 24, 68, incident=True)
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center", "incident"])
            central_line(model, X_30, X_74, 30, 74, incident=True)
            return promote_point_to_top(model, X_3580)


        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_3580 on the given reference triangle."""
            model = create_model('X_3580 = INTERSECTION OF LINES X_2X_6 AND X_30X_74')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03580(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-03580.json"))
            write_center_svg(
                model_acute,
                here / "x-03580.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )