X279

ISOGONAL CONJUGATE OF X220

< 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, 7 }: Soddy Line { 2, 85 }: Central Line L(2, 85) { 56, 105 }: Central Line L(56, 105) { 144, 220 }: Central Line L(144, 220) { 57, 479 }: Central Line L(57, 479) { 304, 346 }: Central Line L(304, 346) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_1 = INCENTER (0.5714, 0.2333) X_7 = GERGONNE POINT (0.5903, 0.2769) X_2 = CENTROID (0.5374, 0.2000) X_85 = ISOTOMIC CONJUGATE OF X(9) (0.5610, 0.2421) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_144 = ANTICOMPLEMENT OF X(7) (0.4317, 0.0461) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_479 = -CROSS CONJUGATE OF X(279) (0.6392, 0.4221) X_304 = ISOTOMIC CONJUGATE OF X(19) (0.3683, 0.0513) X_346 = ISOTOMIC CONJUGATE OF X(279) (0.3948, 0.0827) X_279 = ISOGONAL CONJUGATE OF X(220) (0.6236, 0.3540) A B C X220 X1 X7 X2 X85 X56 X105 X144 X57 X479 X304 X346 X279 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_279 = ISOGONAL CONJUGATE OF X_220."""

        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,
            gergonne_point_of,
            incenter_of,
            isogonal_conjugate,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00279(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_279 = ISOGONAL CONJUGATE OF X_220 on reference triangle ABC."""
            X_220 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)**(2)', ID="X_220", classes=["center"])
            X_279 = isogonal_conjugate(model, A, B, C, X_220, ID="X_279", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            central_line(model, X_1, X_7, 1, 7, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_85 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)/(b + c - a)', ID="X_85", classes=["center", "incident"])
            central_line(model, X_2, X_85, 2, 85, incident=True)
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            X_105 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2) - a*(b + c))', ID="X_105", classes=["center", "incident"])
            central_line(model, X_56, X_105, 56, 105, incident=True)
            return promote_point_to_top(model, X_279)


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