X3527

ISOGONAL CONJUGATE OF X631

< 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) { 3, 51 }: Central Line L(3, 51) { 5, 69 }: Central Line L(5, 69) { 25, 54 }: Central Line L(25, 54) { 68, 381 }: Central Line L(68, 381) { 64, 389 }: Central Line L(64, 389) { 73, 999 }: Central Line L(73, 999) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_631 = 3/5*OG (0.5224, 0.1608) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_54 = KOSNITA POINT (0.5880, 0.2176) X_68 = PRASOLOV POINT (-0.0535, -0.0055) X_381 = MIDPOINT OF X(2) AND X(4) (0.5748, 0.2979) X_64 = ISOGONAL CONJUGATE OF X(20) (0.5579, 1.5943) X_389 = CENTER OF THE TAYLOR CIRCLE (0.6078, 0.2800) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_999 = MIDPOINT OF X(1) AND X(57) (0.5926, 0.2722) X_3527 = ISOGONAL CONJUGATE OF X(631) (0.6065, 0.3131) A B C X631 X3 X51 X5 X69 X25 X54 X68 X381 X64 X389 X73 X999 X3527 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3527 = ISOGONAL CONJUGATE OF X_631."""

        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_trilinear_point,
            isogonal_conjugate,
            nine_point_center_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03527(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3527 = ISOGONAL CONJUGATE OF X_631 on reference triangle ABC."""
            X_631 = eval_trilinear_point(model, A, B, C, '2*cos(A) + cos(B)*cos(C)', ID="X_631", classes=["center"])
            X_3527 = isogonal_conjugate(model, A, B, C, X_631, ID="X_3527", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center", "incident"])
            central_line(model, X_3, X_51, 3, 51, incident=True)
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", 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_5, X_69, 5, 69, incident=True)
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center", "incident"])
            central_line(model, X_25, X_54, 25, 54, incident=True)
            return promote_point_to_top(model, X_3527)


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