X3669

X663com(INTOUCH TRIANGLE)

X3669 = pole wrt incircle of line X7X8
< 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) incircle: Incircle of △ABC { 56, 667 }: Central Line L(56, 667) { 241, 514 }: Central Line L(241, 514) { 65, 876 }: Central Line L(65, 876) { 57, 1022 }: Central Line L(57, 1022) { 513, 663 }: Central Line L(513, 663) { 109, 1308 }: Central Line L(109, 1308) 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_644 = TRILINEAR MULTIPLIER FOR YFF PARABOLA (-0.0171, 0.3359) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_667 = CROSSDIFFERENCE OF X(2) AND X(37) (-6.1667, 5.7155) X_241 = -LINE CONJUGATE OF X(55) (1.1217, 1.2442) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_876 = ISOTOMIC CONJUGATE OF X(874) (0.9873, -0.0185) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_1022 = INTERSECTION OF LINES X(1)X(513) AND X(2)X(514) (1.0000, -0.0000) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_663 = CROSSDIFFERENCE OF X(2) AND X(7) (8.6667, -3.2660) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_1308 = COLLINGS TRANSFORM OF X(661) (1.0102, 0.0916) X_3669 = com(INTOUCH TRIANGLE) (-2.4762, 2.7994) A B C X1 X644 X56 X667 X241 X514 X65 X876 X57 X1022 X513 X663 X109 X1308 X3669 (a, b, c) = (5, 6, 7) | AB = 1

X3669 (X663com(INTOUCH TRIANGLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3669 = X_663com(INTOUCH TRIANGLE)."""

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


        def construct_x_03669(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3669 = X_663com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_644 = eval_trilinear_point(model, A, B, C, '((b + c - a)/(b - c))', ID="X_644", classes=["center"])
            X_3669 = isogonal_conjugate(model, A, B, C, X_644, ID="X_3669", classes=["selected", "target"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            X_667 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b - c)', ID="X_667", classes=["center", "incident"])
            central_line(model, X_56, X_667, 56, 667, incident=True)
            X_241 = eval_trilinear_point(model, A, B, C, '(cos(B/2))**(4) - ((cos(A/2))**(2))*((cos(B/2))**(2) +(cos(C/2))**(2)) + (cos(C/2))**(4)', ID="X_241", classes=["center", "incident"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center", "incident"])
            central_line(model, X_241, X_514, 241, 514, incident=True)
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            X_876 = point_from_barycentrics(model, A, B, C, 0.024662513, 1.0062305, -0.030893043, ID="X_876", classes=["center", "incident"])
            central_line(model, X_65, X_876, 65, 876, incident=True)
            return promote_point_to_top(model, X_3669)


        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_3669 on the given reference triangle."""
            model = create_model('X_3669 = X_663com(INTOUCH TRIANGLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03669(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-03669.json"))
            write_center_svg(
                model_acute,
                here / "x-03669.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )