X3340

INTERSECTION OF LINES X1X_3 AND X7X_145

X3340 = reflection of X1697 in X1
< 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) { 1697, 1 }: OI Line (Incenter–Circumcenter Line) { 1, 3 }: OI Line (Incenter–Circumcenter Line) { 7, 145 }: Central Line L(7, 145) { 8, 226 }: Central Line L(8, 226) { 388, 519 }: Central Line L(388, 519) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1697 = INSIMILICENTER(BEVAN CIRCLE, INCIRCLE) (0.5449, 0.1845) X_1 = INCENTER (0.5714, 0.2333) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_7 = GERGONNE POINT (0.5903, 0.2769) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_8 = NAGEL POINT (0.4694, 0.1333) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_519 = ISOGONAL CONJUGATE OF X(106) (0.9566, 0.6107) X_3340 = INTERSECTION OF LINES X(1)X(3) AND X(7)X(145) (0.5980, 0.2821) A B C X1697 X1 X3 X7 X145 X8 X226 X388 X519 X3340 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3340 = INTERSECTION OF LINES X_1X_3 AND X_7X_145."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            gergonne_point_of,
            incenter_of,
            nagel_point_of,
            promote_point_to_top,
            reflection_in_point,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03340(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3340 = INTERSECTION OF LINES X_1X_3 AND X_7X_145 on reference triangle ABC."""
            X_1697 = eval_trilinear_point(model, A, B, C, '-1 + sin(A/2)*cos(B/2)*cos(C/2)', ID="X_1697", classes=["center"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_3340 = reflection_in_point(model, X_1697, X_1, ID="X_3340", classes=["selected", "target"], guide=False)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            central_line(model, X_1, X_3, 1, 3, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_145 = eval_trilinear_point(model, A, B, C, 'b*c*(3*a - b - c)', ID="X_145", classes=["center", "incident"])
            central_line(model, X_7, X_145, 7, 145, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_226 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cos(B) + cos(C))', ID="X_226", classes=["center", "incident"])
            central_line(model, X_8, X_226, 8, 226, incident=True)
            return promote_point_to_top(model, X_3340)


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