X70

ISOGONAL CONJUGATE OF X26

< 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) { 74, 1288 }: Central Line L(74, 1288) { 6, 1594 }: Central Line L(6, 1594) { 54, 1899 }: Central Line L(54, 1899) { 1176, 1352 }: Central Line L(1176, 1352) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_26 = CIRCUMCENTER OF THE TANGENTIAL TRIANGLE (0.1382, -0.8447) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_1288 = COLLINGS TRANSFORM OF X(24) (0.7166, 0.5641) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1594 = RIGBY-LALESCU ORTHOPOLE (0.5908, 0.3395) X_54 = KOSNITA POINT (0.5880, 0.2176) X_1899 = ZOSMA TRANSFORM OF X(1096) (0.6016, 0.1218) X_1176 = 1st SARAGOSSA POINT OF X(66) (0.5328, 0.1263) X_1352 = REFLECTION OF X(6) IN X(5) (0.5122, 0.2306) X_70 = ISOGONAL CONJUGATE OF X(26) (0.7750, -1.1016) A B C X26 X74 X1288 X6 X1594 X54 X1899 X1176 X1352 X70 (a, b, c) = (5, 6, 7) | AB = 1

X70 (ISOGONAL CONJUGATE OF X26) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_70 = ISOGONAL CONJUGATE OF X_26."""

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


        def construct_x_00070(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_70 = ISOGONAL CONJUGATE OF X_26 on reference triangle ABC."""
            X_26 = eval_trilinear_point(model, A, B, C, 'a*(b**(2)*cos(2*B) + c**(2)*cos(2*C) - a**(2)*cos(2*A))', ID="X_26", classes=["center"])
            X_70 = isogonal_conjugate(model, A, B, C, X_26, ID="X_70", classes=["selected", "target"])
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center", "incident"])
            X_1288 = point_from_barycentrics(model, A, B, C, -0.081215203, 0.1407786, 0.9404366, ID="X_1288", classes=["center", "incident"])
            central_line(model, X_74, X_1288, 74, 1288, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_1594 = eval_trilinear_point(model, A, B, C, 'sec(A) + 2*cos(B - C)', ID="X_1594", classes=["center", "incident"])
            central_line(model, X_6, X_1594, 6, 1594, incident=True)
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center", "incident"])
            X_1899 = eval_trilinear_point(model, A, B, C, '2*b*c - a*b*sec(B) - a*c*sec(C)', ID="X_1899", classes=["center", "incident"])
            central_line(model, X_54, X_1899, 54, 1899, incident=True)
            return promote_point_to_top(model, X_70)


        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_70 on the given reference triangle."""
            model = create_model('X_70 = ISOGONAL CONJUGATE OF X_26')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00070(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-00070.json"))
            write_center_svg(
                model_acute,
                here / "x-00070.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )