X3009

(LEMOINE AXIS)∩(NAGEL LINE)

X3009 = crossdifference of every pair of points on line X2X649
< 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, 2 }: Nagel Line { 31, 172 }: Central Line L(31, 172) { 187, 237 }: Central Line L(187, 237) { 238, 660 }: Central Line L(238, 660) { 292, 672 }: Central Line L(292, 672) { 192, 1740 }: Central Line L(192, 1740) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3226 = SS(a → bc) OF X(105) (1.0976, 0.1415) X_1 = INCENTER (0.5714, 0.2333) X_2 = CENTROID (0.5374, 0.2000) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_172 = TRILINEAR PRODUCT X(6)*X(171) (0.6080, 0.2866) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_237 = -LINE CONJUGATE OF X(2) (0.9894, 1.3825) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_660 = TRILINEAR POLE OF LINE X(1)X(39) (0.9483, -0.0755) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_672 = CROSSDIFFERENCE OF X(1) AND X(514) (1.9245, 2.2184) X_192 = -CEVA CONJUGATE OF X(2) (CONGRUENT PARALLELIANS POINT) (0.6147, 0.2635) X_1740 = MIMOSA TRANSFORM OF X(184) (0.7017, 0.3500) X_3009 = (LEMOINE AXIS)∩(NAGEL LINE) (1.4560, 1.1000) A B C X3226 X1 X2 X31 X172 X187 X237 X238 X660 X292 X672 X192 X1740 X3009 (a, b, c) = (5, 6, 7) | AB = 1

X3009 ((LEMOINE AXIS)∩(NAGEL LINE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3009 = (LEMOINE AXIS)∩(NAGEL LINE)."""

        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,
            centroid_of,
            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_03009(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3009 = (LEMOINE AXIS)∩(NAGEL LINE) on reference triangle ABC."""
            X_3009 = eval_trilinear_point(model, A, B, C, '(a*(a*(b**(2) + c**(2)) - b*c*(b + c)))', ID="X_3009", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            central_line(model, X_1, X_2, 1, 2, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_172 = eval_trilinear_point(model, A, B, C, 'a**(3) + a*b*c', ID="X_172", classes=["center", "incident"])
            central_line(model, X_31, X_172, 31, 172, incident=True)
            X_187 = eval_trilinear_point(model, A, B, C, 'a*(2*a**(2) - b**(2) - c**(2))', ID="X_187", classes=["center", "incident"])
            X_237 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A +  omega  )', ID="X_237", classes=["center", "incident"])
            central_line(model, X_187, X_237, 187, 237, incident=True)
            return promote_point_to_top(model, X_3009)


        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_3009 on the given reference triangle."""
            model = create_model('X_3009 = (LEMOINE AXIS)∩(NAGEL LINE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03009(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-03009.json"))
            write_center_svg(
                model_acute,
                here / "x-03009.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )