X5

NINE-POINT CENTER

X5 is the center of the nine-point circle. Euler showed in that this circle passes through the midpoints of the sides of ABC and the feet of the altitudes of ABC, hence six of the nine points. The other three are the midpoints of segments A-to-X4, B-to-X4, C-to-X4. The radius of the nine-point circle is one-half the circumradius.
< 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) nine_point_circle: Nine-Point Circle (Euler / Feuerbach Circle) { 3, 4 }: Euler Line { 1, 11 }: Feuerbach Line { 13, 18 }: Central Line L(13, 18) { 14, 17 }: Central Line L(14, 17) { 6, 68 }: Nine-Point–Symmedian Line A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) M_a = Midpoint M_a of BC (0.8061, 0.2999) M_b = Midpoint M_b of CA (0.3061, 0.2999) M_c = Midpoint M_c of AB (0.5000, 0.0000) H_a = Altitude Foot H_a on BC (0.7053, 0.4559) H_b = Altitude Foot H_b on CA (0.5102, 0.4999) H_c = Altitude Foot H_c on AB (0.6122, 0.0000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_4 = ORTHOCENTER (0.6122, 0.3958) X_1 = INCENTER (0.5714, 0.2333) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_18 = 2nd NAPOLEON POINT (0.4434, 0.1317) X_14 = 2nd ISOGONIC CENTER (0.9134, -0.1143) X_17 = 1st NAPOLEON POINT (0.5666, 0.2383) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_68 = PRASOLOV POINT (-0.0535, -0.0055) X_2 = CENTROID (0.5374, 0.2000) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_5 = NINE-POINT CENTER (0.5561, 0.2489) A B C Ma Mb Mc Ha Hb Hc X3 X4 X1 X11 X13 X18 X14 X17 X6 X68 X2 X12 X5

X5 (NINE-POINT CENTER) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_5 = NINE-POINT CENTER."""

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


        def construct_x_00005(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_5 = NINE-POINT CENTER on reference triangle ABC."""
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["selected", "target"], draw_circle=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            central_line(model, X_1, X_11, 1, 11, incident=True)
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            X_18 = eval_trilinear_point(model, A, B, C, 'csc(A -  pi  /6)', ID="X_18", classes=["center", "incident"])
            central_line(model, X_13, X_18, 13, 18, incident=True)
            return promote_point_to_top(model, X_5)


        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_5 on the given reference triangle."""
            model = create_model('X_5 = NINE-POINT CENTER')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00005(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-00005.json"))
            write_center_svg(
                model_acute,
                here / "x-00005.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )