X3912

X3747com(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 { 1, 2 }: Nagel Line { 9, 69 }: Central Line L(9, 69) { 76, 85 }: Central Line L(76, 85) { 37, 141 }: Central Line L(37, 141) { 75, 142 }: Central Line L(75, 142) { 7, 346 }: Central Line L(7, 346) 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_2 = CENTROID (0.5374, 0.2000) X_9 = MITTENPUNKT (0.5110, 0.1615) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_85 = ISOTOMIC CONJUGATE OF X(9) (0.5610, 0.2421) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_141 = COMPLEMENT OF SYMMEDIAN POINT (0.5061, 0.1663) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_142 = COMPLEMENT OF X(9) (0.5506, 0.2192) X_7 = GERGONNE POINT (0.5903, 0.2769) X_346 = ISOTOMIC CONJUGATE OF X(279) (0.3948, 0.0827) X_3912 = com[INTOUCH TRIANGLE))] (-1.2993, -1.5997) A B C X1 X2 X9 X69 X76 X85 X37 X141 X75 X142 X7 X346 X3912 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3912 = X_3747com(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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            isogonal_conjugate,
            mittenpunkt_of,
            point_from_barycentrics,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03912(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3912 = X_3747com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_1438 = point_from_barycentrics(model, A, B, C, 0.077220077, 1.1119691, -0.18918919, ID="X_1438", classes=["center"])
            X_3912 = isogonal_conjugate(model, A, B, C, X_1438, ID="X_3912", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            central_line(model, X_1, X_2, 1, 2, incident=True)
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            central_line(model, X_9, X_69, 9, 69, incident=True)
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", 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_76, X_85, 76, 85, incident=True)
            return promote_point_to_top(model, X_3912)


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