X3676

X650com(INTOUCH TRIANGLE)

X3676 = X647-of-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 { 57, 649 }: Central Line L(57, 649) { 241, 514 }: Central Line L(241, 514) { 109, 658 }: Central Line L(109, 658) { 513, 676 }: Central Line L(513, 676) { 522, 693 }: Central Line L(522, 693) { 1443, 1447 }: Central Line L(1443, 1447) 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_3939 = com[INVERSE(n(INTOUCH TRIANGLE))] (0.0417, 0.4082) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_649 = CROSSDIFFERENCE OF X(1) and X(2) (-21.0000, 14.6969) X_241 = -LINE CONJUGATE OF X(55) (1.1217, 1.2442) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_658 = TRILINEAR POLE OF LINE X(1)X(7) (0.3795, 0.5837) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_676 = CROSSDIFFERENCE OF X(3) AND X(101) (1.2449, 0.5665) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_693 = ISOTOMIC CONJUGATE OF X(100) (-25.8163, 8.9981) X_1443 = -BETH CONJUGATE OF X(320) (0.9441, 1.0954) X_1447 = -BETH CONJUGATE OF X(350) (1.1014, 1.0207) X_3676 = com(INTOUCH TRIANGLE) (-4.3265, 3.5993) A B C X1 X3939 X57 X649 X241 X514 X109 X658 X513 X676 X522 X693 X1443 X1447 X3676 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3676 = X_650com(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_barycentric_point,
            eval_trilinear_point,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03676(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3676 = X_650com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_3676 = eval_barycentric_point(model, A, B, C, '(b - c)/(b + c - a)', ID="X_3676", classes=["selected", "target"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_649 = eval_trilinear_point(model, A, B, C, 'a*(b - c)', ID="X_649", classes=["center", "incident"])
            central_line(model, X_57, X_649, 57, 649, 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_109 = eval_trilinear_point(model, A, B, C, 'a/(cos(B) - cos(C))', ID="X_109", classes=["center", "incident"])
            X_658 = eval_trilinear_point(model, A, B, C, '1/((1 + cos(A))*(cos(B) - cos(C)))', ID="X_658", classes=["center", "incident"])
            central_line(model, X_109, X_658, 109, 658, incident=True)
            return promote_point_to_top(model, X_3676)


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