X303

ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT

X303 is the isotomic conjugate of 2nd Napoleon point.
< 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) { 2, 6 }: Centroid–Symmedian Line { 17, 76 }: Central Line L(17, 76) { 13, 99 }: Central Line L(13, 99) { 264, 301 }: Central Line L(264, 301) { 15, 316 }: Central Line L(15, 316) { 300, 311 }: Central Line L(300, 311) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_300 = ISOTOMIC CONJUGATE OF 1st ISODYNAMIC CENTER (0.5239, 0.2121) X_298 = ISOTOMIC CONJUGATE OF 1st ISOGONIC CENTER (0.4724, 0.1301) X_2 = CENTROID (0.5374, 0.2000) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_17 = 1st NAPOLEON POINT (0.5666, 0.2383) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_99 = STEINER POINT (0.1109, 0.4322) X_264 = ISOTOMIC CONJUGATE OF CIRCUMCENTER (0.5720, 0.3293) X_301 = ISOTOMIC CONJUGATE OF 2nd ISODYNAMIC CENTER (0.8423, -0.0749) X_15 = 1st ISODYNAMIC POINT (0.5519, 0.1878) X_316 = DROUSSENT PIVOT (-0.7850, -1.9118) X_311 = ISOTOMIC CONJUGATE OF X(54) (0.4818, 0.1803) X_303 = ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT (0.6079, 0.2757) A B C X300 X298 X2 X6 X17 X76 X13 X99 X264 X301 X15 X316 X311 X303 (a, b, c) = (5, 6, 7) | AB = 1

X303 (ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_303 = ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT."""

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


        def construct_x_00303(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_303 = ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT on reference triangle ABC."""
            X_18 = eval_trilinear_point(model, A, B, C, 'csc(A -  pi  /6)', ID="X_18", classes=["center"])
            X_303 = isotomic_conjugate(model, A, B, C, X_18, ID="X_303", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_2, X_6, 2, 6, incident=True)
            X_17 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /6)', ID="X_17", classes=["center", "incident"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            central_line(model, X_17, X_76, 17, 76, incident=True)
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            central_line(model, X_13, X_99, 13, 99, incident=True)
            return promote_point_to_top(model, X_303)


        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_303 on the given reference triangle."""
            model = create_model('X_303 = ISOTOMIC CONJUGATE OF 2nd NAPOLEON POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00303(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-00303.json"))
            write_center_svg(
                model_acute,
                here / "x-00303.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )