X3330

INTERSECTION OF LINES X4X_6 AND X44X_513

< 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, 6 }: Van Aubel Line { 37, 73 }: Central Line L(37, 73) { 44, 513 }: Central Line L(44, 513) { 198, 408 }: Central Line L(198, 408) { 651, 857 }: Central Line L(651, 857) { 9, 1745 }: Central Line L(9, 1745) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1294 = COLLINGS TRANSFORM OF X(122) (0.4267, -0.4030) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_4 = ORTHOCENTER (0.6122, 0.3958) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_198 = -CEVA CONJUGATE OF X(6) (0.4741, -0.0381) X_408 = EULER LINE INTERCEPT OF LINE X(73)X(228) (0.4882, 0.0713) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_857 = INTERCEPT OF EULER LINE AND TRILINEAR POLAR OF X(75) (-0.3133, -2.0259) X_9 = MITTENPUNKT (0.5110, 0.1615) X_1745 = MIMOSA TRANSFORM OF X(255) (0.4689, -0.1747) X_3330 = INTERSECTION OF LINES X(4)X(6) AND X(44)X(513) (0.8420, 2.8077) A B C X1294 X55 X4 X6 X37 X73 X44 X513 X198 X408 X651 X857 X9 X1745 X3330 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3330 = INTERSECTION OF LINES X_4X_6 AND X_44X_513."""

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


        def construct_x_03330(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3330 = INTERSECTION OF LINES X_4X_6 AND X_44X_513 on reference triangle ABC."""
            X_1294 = eval_barycentric_point(model, A, B, C, '1/(a**(6)*(b**(2) + c**(2)) - a**(4)*(3*b**(4) - 4*b**(2)*c**(2) + 3*c**(4)) + 3*a**(2)*(b**(2) - c**(2))**(2)*(b**(2) + c**(2)) - (b**(2) - c**(2))**(2)*(b**(4) + 4*b**(2)*c**(2) + c**(4)))', ID="X_1294", classes=["center"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center"])
            X_3330 = ceva_conjugate(model, A, B, C, X_1294, X_55, ID="X_3330", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_4, X_6, 4, 6, incident=True)
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_73 = eval_trilinear_point(model, A, B, C, 'sec(B) + sec(C)', ID="X_73", classes=["center", "incident"])
            central_line(model, X_37, X_73, 37, 73, incident=True)
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center", "incident"])
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center", "incident"])
            central_line(model, X_44, X_513, 44, 513, incident=True)
            return promote_point_to_top(model, X_3330)


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