X3675

X1026com(INTOUCH TRIANGLE)

X3675 = crossdifference of every pair of points on line X100X650
< 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, 665 }: Central Line L(244, 665) { 11, 1111 }: Central Line L(11, 1111) { 63, 1083 }: Central Line L(63, 1083) { 518, 1026 }: Central Line L(518, 1026) { 672, 1642 }: Central Line L(672, 1642) 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_665 = CROSSDIFFERENCE OF X(2) AND X(11) (1.4579, 1.0988) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_1111 = TRILINEAR SQUARE OF X(514) (0.7470, 0.0849) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_1083 = MIDPOINT OF X(105) AND X(644) (0.4771, 0.1213) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_1026 = INTERSECTION OF LINES X(1)X(2) AND X(100)X(101) (4.1429, 3.7326) X_672 = CROSSDIFFERENCE OF X(1) AND X(514) (1.9245, 2.2184) X_1642 = TRIPOLAR CENTROID OF X(100) (1.0821, 0.8398) X_3675 = com(INTOUCH TRIANGLE) (-0.5714, -1.8663) A B C X1 X3 X244 X665 X11 X1111 X63 X1083 X518 X1026 X672 X1642 X3675 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3675 = X_1026com(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,
            feuerbach_point_of,
            incenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03675(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3675 = X_1026com(INTOUCH TRIANGLE) on reference triangle ABC."""
            X_3675 = eval_barycentric_point(model, A, B, C, 'a*(b - c)**(2)*(b**(2) + c**(2) - a*b - a*c)', ID="X_3675", 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_665 = eval_trilinear_point(model, A, B, C, 'a*((a - b)**(2)*(a + b - c) - (c - a)**(2)*(c + a - b))', ID="X_665", classes=["center", "incident"])
            central_line(model, X_244, X_665, 244, 665, incident=True)
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_1111 = eval_trilinear_point(model, A, B, C, '(((b - c)/a)**(2))', ID="X_1111", classes=["center", "incident"])
            central_line(model, X_11, X_1111, 11, 1111, incident=True)
            return promote_point_to_top(model, X_3675)


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