X3712

X896com(EXTOUCH TRIANGLE)

X3712 = excentral-to-ABC barycentric image of X896
< 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, 21 }: Central Line L(8, 21) { 23, 100 }: Central Line L(23, 100) { 522, 650 }: Central Line L(522, 650) { 524, 896 }: Central Line L(524, 896) { 846, 1211 }: Central Line L(846, 1211) { 101, 2768 }: Central Line L(101, 2768) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_8 = NAGEL POINT (0.4694, 0.1333) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_23 = FAR-OUT POINT (1.3871, 2.4232) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_650 = CROSSDIFFERENCE OF X(1) AND X(3) (13.7143, -4.1991) X_524 = ISOGONAL CONJUGATE OF X(111) (0.1376, -0.2297) X_896 = INTERSECTION OF LINES X(1)X(21) AND X(9)X(750) (2.0357, 2.1579) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_1211 = ISOGONAL CONJUGATE OF X(1169) (0.5137, 0.1744) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_2768 = SR(X(109), X(111)) (-0.0003, 0.2027) X_3712 = com(EXTOUCH TRIANGLE) (-0.5459, -0.6165) A B C X8 X21 X23 X100 X522 X650 X524 X896 X846 X1211 X101 X2768 X3712 (a, b, c) = (5, 6, 7) | AB = 1

X3712 (X896com(EXTOUCH TRIANGLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3712 = X_896com(EXTOUCH 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,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03712(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3712 = X_896com(EXTOUCH TRIANGLE) on reference triangle ABC."""
            X_3712 = eval_barycentric_point(model, A, B, C, '((b + c - a)*(b**(2) + c**(2) - 2*a**(2)))', ID="X_3712", classes=["selected", "target"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_8, X_21, 8, 21, incident=True)
            X_23 = eval_trilinear_point(model, A, B, C, 'a*(b**(4) + c**(4) - a**(4) - b**(2)*c**(2))', ID="X_23", classes=["center", "incident"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            central_line(model, X_23, X_100, 23, 100, incident=True)
            X_522 = eval_trilinear_point(model, A, B, C, '(cos(B) - cos(C))*(csc(A))', ID="X_522", classes=["center", "incident"])
            X_650 = eval_trilinear_point(model, A, B, C, 'cos(B) - cos(C)', ID="X_650", classes=["center", "incident"])
            central_line(model, X_522, X_650, 522, 650, incident=True)
            return promote_point_to_top(model, X_3712)


        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_3712 on the given reference triangle."""
            model = create_model('X_3712 = X_896com(EXTOUCH TRIANGLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03712(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-03712.json"))
            write_center_svg(
                model_acute,
                here / "x-03712.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )