X774

CROSSPOINT OF X1 AND X158

X774 is the crosspoint of X1 and X158.
< 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) { 1, 21 }: Central Line L(1, 21) { 55, 201 }: Central Line L(55, 201) { 821, 823 }: Central Line L(821, 823) { 601, 1060 }: Central Line L(601, 1060) { 602, 1062 }: Central Line L(602, 1062) { 938, 986 }: Central Line L(938, 986) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_158 = -CROSS CONJUGATE OF X(92) (0.6215, 0.5117) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_201 = -CEVA CONJUGATE OF X(12) (0.4897, 0.1062) X_821 = ISOGONAL CONJUGATE OF X(820) (0.5996, 0.4597) X_823 = ISOGONAL CONJUGATE OF X(822) (0.5623, 0.6035) X_601 = INTERSECTION OF LINES X(3)X(31) AND X(55)X(255) (0.5761, 0.2252) X_1060 = INTERSECTION OF LINES X(1)X(3) AND X(5)X(34) (0.5181, 0.1353) X_602 = INTERSECTION OF LINES X(3)X(31) AND X(56)X(255) (0.8182, 0.6170) X_1062 = INTERSECTION OF LINES X(1)X(3) AND X(5)X(33) (0.4633, 0.0347) X_938 = ANTICOMPLEMENT OF X(936) (0.5846, 0.2462) X_986 = INTERSECTION OF LINES X(1)X(3) AND X(8)X(38) (0.5588, 0.2101) X_774 = CROSSPOINT OF X(1) AND X(158) (0.6363, 0.3186) A B C X1 X158 X21 X55 X201 X821 X823 X601 X1060 X602 X1062 X938 X986 X774 (a, b, c) = (5, 6, 7) | AB = 1

X774 (CROSSPOINT OF X1 AND X158) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_774 = CROSSPOINT OF X_1 AND X_158."""

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


        def construct_x_00774(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_774 = CROSSPOINT OF X_1 AND X_158 on reference triangle ABC."""
            X_774 = eval_trilinear_point(model, A, B, C, '(cos(B))**(2) + (cos(C))**(2)', ID="X_774", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_1, X_21, 1, 21, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_201 = eval_trilinear_point(model, A, B, C, '(cos(A))*(1 + cos(B - C))', ID="X_201", classes=["center", "incident"])
            central_line(model, X_55, X_201, 55, 201, incident=True)
            X_821 = eval_trilinear_point(model, A, B, C, '((sec(A))**(2) /((cos(B))**(2) + (cos(C))**(2)))', ID="X_821", classes=["center", "incident"])
            X_823 = eval_trilinear_point(model, A, B, C, '1/((sec(B))**(2) - (sec(C))**(2))', ID="X_823", classes=["center", "incident"])
            central_line(model, X_821, X_823, 821, 823, incident=True)
            return promote_point_to_top(model, X_774)


        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_774 on the given reference triangle."""
            model = create_model('X_774 = CROSSPOINT OF X_1 AND X_158')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00774(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-00774.json"))
            write_center_svg(
                model_acute,
                here / "x-00774.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )