X3999

X899com(INTOUCH TRIANGLE)

X3999 = incircle-inverse of X34583
< 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, 3 }: OI Line (Incenter–Circumcenter Line) { 244, 518 }: Central Line L(244, 518) { 88, 1280 }: Central Line L(88, 1280) { 44, 3290 }: Central Line L(44, 3290) { 38, 3742 }: Central Line L(38, 3742) { 896, 3246 }: Central Line L(896, 3246) 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_3 = CIRCUMCENTER (0.5000, 0.1021) X_244 = -LINE CONJUGATE OF X(100) (0.7857, 0.1166) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_88 = ISOGONAL CONJUGATE OF X(44) (1.0000, 0.0000) X_1280 = ISOGONAL CONJUGATE OF X(1279) (1.1600, 0.1306) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_3290 = INTERSECTION OF LINES X(2)X(37) AND X(230)X(231) (1.0664, 0.6348) X_38 = CROSSPOINT OF X(1) AND X(75) (0.5443, 0.1976) X_3742 = com[n(INCENTRAL)*n(MEDIAL)] (0.5599, 0.2266) X_896 = INTERSECTION OF LINES X(1)X(21) AND X(9)X(750) (2.0357, 2.1579) X_3246 = MIDPOINT OF X(1) AND X(44) (1.3571, 1.1664) X_3999 = com(INTOUCH TRIANGLE) (0.0000, -0.8165) A B C X1 X3 X244 X518 X88 X1280 X44 X3290 X38 X3742 X896 X3246 X3999 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3999 = X_899com(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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_barycentric_point,
            eval_trilinear_point,
            incenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03999(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3999 = X_899com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_3999 = eval_barycentric_point(model, A, B, C, '(a*(3*b**(2) + 3*c**(2) - a*b - a*c - 4*b*c))', ID="X_3999", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            central_line(model, X_1, X_3, 1, 3, incident=True)
            X_244 = eval_trilinear_point(model, A, B, C, '(b - c)**(2)', ID="X_244", classes=["center", "incident"])
            X_518 = eval_trilinear_point(model, A, B, C, '(a*b + a*c - b**(2) - c**(2))', ID="X_518", classes=["center", "incident"])
            central_line(model, X_244, X_518, 244, 518, incident=True)
            X_88 = eval_trilinear_point(model, A, B, C, '1/(b + c - 2*a)', ID="X_88", classes=["center", "incident"])
            X_1280 = eval_trilinear_point(model, A, B, C, '(1/((b-c)**(2) - a*(b + c - 2*a)))', ID="X_1280", classes=["center", "incident"])
            central_line(model, X_88, X_1280, 88, 1280, incident=True)
            return promote_point_to_top(model, X_3999)


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