X3474

INTERSECTION OF LINES X4X_46 AND X7X_55

< 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, 46 }: Central Line L(4, 46) { 7, 55 }: Central Line L(7, 55) { 20, 65 }: Central Line L(20, 65) { 144, 210 }: Central Line L(144, 210) { 1, 376 }: Central Line L(1, 376) { 109, 278 }: Central Line L(109, 278) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_1721 = MIMOSA TRANSFORM OF X(55) (0.6494, 0.4136) X_4 = ORTHOCENTER (0.6122, 0.3958) X_7 = GERGONNE POINT (0.5903, 0.2769) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_144 = ANTICOMPLEMENT OF X(7) (0.4317, 0.0461) X_210 = -CEVA CONJUGATE OF X(37) (0.4925, 0.1466) X_1 = INCENTER (0.5714, 0.2333) X_376 = CENTROID OF THE ANTIPEDAL TRIANGLE OF X(2) (0.4626, 0.0042) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_278 = ISOGONAL CONJUGATE OF X(219) (0.6278, 0.4577) X_3474 = INTERSECTION OF LINES X(4)X(46) AND X(7)X(55) (0.6682, 0.4369) A B C X46 X1721 X4 X7 X55 X20 X65 X144 X210 X1 X376 X109 X278 X3474 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3474 = INTERSECTION OF LINES X_4X_46 AND X_7X_55."""

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


        def construct_x_03474(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3474 = INTERSECTION OF LINES X_4X_46 AND X_7X_55 on reference triangle ABC."""
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center"])
            X_1721 = point_from_barycentrics(model, A, B, C, 0.083333333, 0.22727273, 0.68939394, ID="X_1721", classes=["center"])
            X_3474 = cevapoint(model, A, B, C, X_46, X_1721, ID="X_3474", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            central_line(model, X_4, X_46, 4, 46, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            central_line(model, X_7, X_55, 7, 55, incident=True)
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_20, X_65, 20, 65, incident=True)
            return promote_point_to_top(model, X_3474)


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