X1370

ANTICOMPLEMENT OF X25

< 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) { 25, 1368 }: Euler Line { 2, 3 }: Euler Line { 66, 69 }: Central Line L(66, 69) { 305, 315 }: Central Line L(305, 315) { 343, 1350 }: Central Line L(343, 1350) { 925, 1297 }: Central Line L(925, 1297) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_1368 = COMPLEMENTARY CONJUGATE OF X(6) (0.4897, 0.0751) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_66 = ISOGONAL CONJUGATE OF X(22) (0.5912, 1.0593) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_305 = ISOTOMIC CONJUGATE OF X(25) (0.3258, 0.0397) X_315 = ISOTOMIC CONJUGATE OF X(66) (0.3323, -0.0666) X_343 = ISOTOMIC CONJUGATE OF X(275) (0.4345, 0.0893) X_1350 = REFLECTION OF X(6) IN X(3) (0.4000, -0.0631) X_925 = ANTICOMPLEMENT OF X(136) (0.0074, -0.0312) X_1297 = COLLINGS TRANSFORM OF X(127) (0.4838, -0.4080) X_1370 = ANTICOMPLEMENT OF X(25) (0.3465, -0.2995) A B C X25 X1368 X2 X3 X66 X69 X305 X315 X343 X1350 X925 X1297 X1370 (a, b, c) = (5, 6, 7) | AB = 1

X1370 (ANTICOMPLEMENT OF X25) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1370 = ANTICOMPLEMENT OF X_25."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            promote_point_to_top,
            reflection_in_point,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01370(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1370 = ANTICOMPLEMENT OF X_25 on reference triangle ABC."""
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center"])
            X_1368 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2)/(a**(2) - b**(2) + c**(2)) + c**(2)/(a**(2) + b**(2) - c**(2)))', ID="X_1368", classes=["center"])
            X_1370 = reflection_in_point(model, X_25, X_1368, ID="X_1370", classes=["selected", "target"], guide=False)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_66 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(4) + c**(4) - a**(4))', ID="X_66", 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_66, X_69, 66, 69, incident=True)
            X_305 = eval_trilinear_point(model, A, B, C, 'b**(4)*c**(4)*cos(A)', ID="X_305", classes=["center", "incident"])
            X_315 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(4) + c**(4) - a**(4))', ID="X_315", classes=["center", "incident"])
            central_line(model, X_305, X_315, 305, 315, incident=True)
            return promote_point_to_top(model, X_1370)


        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_1370 on the given reference triangle."""
            model = create_model('X_1370 = ANTICOMPLEMENT OF X_25')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01370(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-01370.json"))
            write_center_svg(
                model_acute,
                here / "x-01370.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )