X1071

INTERSECTION OF LINES X1X_84 AND X4X_7

< 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) { 4, 7 }: Central Line L(4, 7) { 6, 63 }: Central Line L(6, 63) { 1, 84 }: Central Line L(1, 84) { 21, 104 }: Central Line L(21, 104) { 20, 145 }: Central Line L(20, 145) { 355, 377 }: Central Line L(355, 377) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_7 = GERGONNE POINT (0.5903, 0.2769) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_1 = INCENTER (0.5714, 0.2333) X_84 = ISOGONAL CONJUGATE OF X(40) (0.6071, 0.6816) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_355 = FUHRMANN CENTER (0.5408, 0.2645) X_377 = EULER LINE INTERCEPT OF LINE X(7)X(8) (0.5473, 0.2258) X_1071 = INTERSECTION OF LINES X(1)X(84) AND X(4)X(7) (0.5633, 0.1308) A B C X4 X7 X6 X63 X1 X84 X21 X104 X20 X145 X355 X377 X1071 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1071 = INTERSECTION OF LINES X_1X_84 AND X_4X_7."""

        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,
            construct_baseline_triangle,
            create_model,
            crosspoint,
            eval_trilinear_point,
            gergonne_point_of,
            incenter_of,
            orthocenter_of,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01071(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1071 = INTERSECTION OF LINES X_1X_84 AND X_4X_7 on reference triangle ABC."""
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center"])
            X_1071 = crosspoint(model, A, B, C, X_7, X_63, ID="X_1071", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            central_line(model, X_4, X_7, 4, 7, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_6, X_63, 6, 63, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_84 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A) - 1)', ID="X_84", classes=["center", "incident"])
            central_line(model, X_1, X_84, 1, 84, incident=True)
            return promote_point_to_top(model, X_1071)


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