X2209

X2-ISOCONJUGATE OF X330

< 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) { 6, 31 }: Central Line L(6, 31) { 8, 238 }: Central Line L(8, 238) { 86, 750 }: Central Line L(86, 750) { 41, 904 }: Central Line L(41, 904) { 560, 692 }: Central Line L(560, 692) { 1, 1258 }: Central Line L(1, 1258) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_8 = NAGEL POINT (0.4694, 0.1333) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_750 = INTERSECTION OF LINES X(1)X(88) AND X(2)X(31) (0.5675, 0.2354) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_904 = -HIRST INVERSE OF X(256) (0.6163, 0.2816) X_560 = 4th POWER POINT (0.6520, 0.3639) X_692 = -CEVA CONJUGATE OF X(101) (0.2833, 0.5715) X_1 = INCENTER (0.5714, 0.2333) X_1258 = ISOGONAL CONJUGATE OF X(1107) (0.5907, 0.2599) X_2209 = -ISOCONJUGATE OF X(330) (0.6618, 0.3583) A B C X32 X31 X6 X8 X238 X86 X750 X41 X904 X560 X692 X1 X1258 X2209 (a, b, c) = (5, 6, 7) | AB = 1

X2209 (X2-ISOCONJUGATE OF X330) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2209 = X_2-ISOCONJUGATE OF X_330."""

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


        def construct_x_02209(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2209 = X_2-ISOCONJUGATE OF X_330 on reference triangle ABC."""
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center"])
            X_2209 = ceva_conjugate(model, A, B, C, X_32, X_31, ID="X_2209", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_6, X_31, 6, 31, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            central_line(model, X_8, X_238, 8, 238, incident=True)
            X_86 = eval_trilinear_point(model, A, B, C, 'b*c/(b + c)', ID="X_86", classes=["center", "incident"])
            X_750 = eval_trilinear_point(model, A, B, C, 'a**(2) + 2*b*c', ID="X_750", classes=["center", "incident"])
            central_line(model, X_86, X_750, 86, 750, incident=True)
            return promote_point_to_top(model, X_2209)


        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_2209 on the given reference triangle."""
            model = create_model('X_2209 = X_2-ISOCONJUGATE OF X_330')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02209(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-02209.json"))
            write_center_svg(
                model_acute,
                here / "x-02209.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )