X3521

ISOGONAL CONJUGATE OF X3520

< 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) { 5, 74 }: Central Line L(5, 74) { 30, 54 }: Central Line L(30, 54) { 6, 382 }: Central Line L(6, 382) { 64, 381 }: Central Line L(64, 381) { 185, 265 }: Central Line L(185, 265) { 3, 1568 }: Central Line L(3, 1568) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1531 = ORTHOJOIN OF X(32) (0.0445, -0.5419) X_265 = REFLECTION OF X(3) IN X(125) (0.8606, -0.0500) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_54 = KOSNITA POINT (0.5880, 0.2176) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_382 = REFLECTION OF CIRCUMCENTER IN ORTHOCENTER (0.7245, 0.6894) X_64 = ISOGONAL CONJUGATE OF X(20) (0.5579, 1.5943) X_381 = MIDPOINT OF X(2) AND X(4) (0.5748, 0.2979) X_185 = NAGEL POINT OF THE ORTHIC TRIANGLE (0.6033, 0.1643) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_1568 = ORTHOJOIN OF X(800) (0.1362, -0.3019) X_3521 = ISOGONAL CONJUGATE OF X(3520) (0.5763, 0.1868) A B C X1531 X265 X5 X74 X30 X54 X6 X382 X64 X381 X185 X3 X1568 X3521 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3521 = ISOGONAL CONJUGATE OF X_3520."""

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


        def construct_x_03521(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3521 = ISOGONAL CONJUGATE OF X_3520 on reference triangle ABC."""
            X_3521 = eval_trilinear_point(model, A, B, C, '1/(4*cos(A) + sec(A))', ID="X_3521", classes=["selected", "target"])
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center", "incident"])
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center", "incident"])
            central_line(model, X_5, X_74, 5, 74, incident=True)
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", 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_30, X_54, 30, 54, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_382 = eval_trilinear_point(model, A, B, C, 'cos(A) - 4*cos(B)*cos(C)', ID="X_382", classes=["center", "incident"])
            central_line(model, X_6, X_382, 6, 382, incident=True)
            return promote_point_to_top(model, X_3521)


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