X3667

X513com(INTOUCH TRIANGLE)

< 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 { 30, 511 }: Central Line L(30, 511) { 4, 2457 }: Central Line L(4, 2457) { 572, 1919 }: Central Line L(572, 1919) { 145, 2403 }: Central Line L(145, 2403) { 1027, 1721 }: Central Line L(1027, 1721) { 110, 2692 }: Central Line L(110, 2692) 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_1293 = COLLINGS TRANSFORM OF X(121) (0.0000, 0.2041) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_511 = ISOGONAL CONJUGATE OF X(98) (0.2335, -0.3020) X_4 = ORTHOCENTER (0.6122, 0.3958) X_2457 = RADICAL CENTER OF {ORTHOCENTROIDAL, BEVAN, FUHRMANN} CIRCLES (-1.5941, 2.6476) X_572 = ORTHOGONAL OF X(58) (0.5253, 0.1439) X_1919 = BICENTRIC DIFFERENCE OF PU(12) (-2.5853, 3.3187) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_2403 = GIBERT-SIMSON TRANSFORM OF X(106) (1.0000, -0.0000) X_1027 = INTERSECTION OF LINES X(1)X(514) AND X(6)X(513) (1.0130, 0.0424) X_1721 = MIMOSA TRANSFORM OF X(55) (0.6494, 0.4136) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_2692 = SR(X(74), X(106)) (0.9406, -0.1554) X_3667 = com(INTOUCH TRIANGLE) (0.9481, -0.2192) A B C X1 X1293 X30 X511 X4 X2457 X572 X1919 X145 X2403 X1027 X1721 X110 X2692 X3667 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3667 = X_513com(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,
            orthocenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03667(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3667 = X_513com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_1293 = eval_trilinear_point(model, A, B, C, '(a/((b - c)*(3*a - b - c)))', ID="X_1293", classes=["center"])
            X_3667 = isogonal_conjugate(model, A, B, C, X_1293, ID="X_3667", classes=["selected", "target"])
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_511 = eval_trilinear_point(model, A, B, C, 'cos(A +  omega  )', ID="X_511", classes=["center", "incident"])
            central_line(model, X_30, X_511, 30, 511, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_2457 = eval_trilinear_point(model, A, B, C, '(b*c*(b**(2) - c**(2))*(2*a**(3) + a**(2)*(b + c) - (b + c)*(b - c)**(2) - 2*a*(b**(2) - b*c + c**(2))))', ID="X_2457", classes=["center", "incident"])
            central_line(model, X_4, X_2457, 4, 2457, incident=True)
            X_572 = eval_trilinear_point(model, A, B, C, '(cos(A - U))', ID="X_572", classes=["center", "incident"])
            X_1919 = eval_trilinear_point(model, A, B, C, '(a**(3)*(b - c))', ID="X_1919", classes=["center", "incident"])
            central_line(model, X_572, X_1919, 572, 1919, incident=True)
            return promote_point_to_top(model, X_3667)


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