X1222

ISOGONAL CONJUGATE OF X1201

< 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) { 8, 56 }: Central Line L(8, 56) { 10, 106 }: Central Line L(10, 106) { 6, 145 }: Central Line L(6, 145) { 1, 341 }: Central Line L(1, 341) { 75, 269 }: Central Line L(75, 269) { 34, 318 }: Central Line L(34, 318) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_8 = NAGEL POINT (0.4694, 0.1333) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_106 = Λ(INCENTER, CENTROID) (1.0000, 0.0000) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_341 = ISOTOMIC CONJUGATE OF X(269) (0.3509, 0.0650) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_269 = ISOGONAL CONJUGATE OF X(200) (0.6369, 0.3847) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_318 = ISOTOMIC CONJUGATE OF X(77) (0.5514, 0.2839) X_1222 = ISOGONAL CONJUGATE OF X(1201) (0.5108, 0.1870) A B C X1 X8 X56 X10 X106 X6 X145 X341 X75 X269 X34 X318 X1222 (a, b, c) = (5, 6, 7) | AB = 1

X1222 (ISOGONAL CONJUGATE OF X1201) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1222 = ISOGONAL CONJUGATE OF X_1201."""

        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,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            isogonal_conjugate,
            nagel_point_of,
            promote_point_to_top,
            spieker_center_of,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01222(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1222 = ISOGONAL CONJUGATE OF X_1201 on reference triangle ABC."""
            X_1201 = eval_trilinear_point(model, A, B, C, '(a*(b**(2) + c**(2) - 2*b*c + a*b + a*c))', ID="X_1201", classes=["center"])
            X_1222 = isogonal_conjugate(model, A, B, C, X_1201, ID="X_1222", classes=["selected", "target"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            central_line(model, X_8, X_56, 8, 56, incident=True)
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_106 = eval_trilinear_point(model, A, B, C, 'a/(2*a - b - c)', ID="X_106", classes=["center", "incident"])
            central_line(model, X_10, X_106, 10, 106, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_145 = eval_trilinear_point(model, A, B, C, 'b*c*(3*a - b - c)', ID="X_145", classes=["center", "incident"])
            central_line(model, X_6, X_145, 6, 145, incident=True)
            return promote_point_to_top(model, X_1222)


        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_1222 on the given reference triangle."""
            model = create_model('X_1222 = ISOGONAL CONJUGATE OF X_1201')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01222(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-01222.json"))
            write_center_svg(
                model_acute,
                here / "x-01222.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )