X3935

X1155com[INVERSE(n(INTOUCH TRIANGLE))]

X3935 = inverse-in-circumconic-centered-at-X1 of X2
< 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 { 100, 518 }: Central Line L(100, 518) { 44, 765 }: Central Line L(44, 765) { 149, 908 }: Central Line L(149, 908) { 72, 1005 }: Central Line L(72, 1005) { 88, 1280 }: Central Line L(88, 1280) 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_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_765 = CEVAPOINT OF X(1) AND X(100) (0.4286, 0.3110) X_149 = REFLECTION OF X(20) IN X(104) (1.3265, -0.3333) X_908 = POINT ACUBENS (-0.8367, -1.7996) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_1005 = INTERCEPT OF EULER LINE AND LINE X(9)X(100) (0.5199, 0.1541) X_88 = ISOGONAL CONJUGATE OF X(44) (1.0000, 0.0000) X_1280 = ISOGONAL CONJUGATE OF X(1279) (1.1600, 0.1306) X_3935 = com[INVERSE(n(INTOUCH TRIANGLE))] (-3.0000, -3.2660) A B C X1 X2 X100 X518 X44 X765 X149 X908 X72 X1005 X88 X1280 X3935 (a, b, c) = (5, 6, 7) | AB = 1

X3935 (X1155com[INVERSE(n(INTOUCH TRIANGLE))]) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3935 = X_1155com[INVERSE(n(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_barycentric_point,
            eval_trilinear_point,
            incenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03935(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3935 = X_1155com[INVERSE(n(INTOUCH TRIANGLE))] on reference triangle ABC."""
            X_3935 = eval_barycentric_point(model, A, B, C, '(a*(a**(2) + b**(2) + c**(2) - 2*a*b - 2*a*c + b*c))', ID="X_3935", 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_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", 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_100, X_518, 100, 518, incident=True)
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center", "incident"])
            X_765 = eval_trilinear_point(model, A, B, C, '(b - c) **(-2)', ID="X_765", classes=["center", "incident"])
            central_line(model, X_44, X_765, 44, 765, incident=True)
            return promote_point_to_top(model, X_3935)


        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_3935 on the given reference triangle."""
            model = create_model('X_3935 = X_1155com[INVERSE(n(INTOUCH TRIANGLE))]')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03935(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-03935.json"))
            write_center_svg(
                model_acute,
                here / "x-03935.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )