X3477

ISOGONAL CONJUGATE OF X3475

< 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) { 77, 354 }: Central Line L(77, 354) { 78, 1001 }: Central Line L(78, 1001) { 3, 1471 }: Central Line L(3, 1471) { 1, 1827 }: Central Line L(1, 1827) { 219, 2280 }: Central Line L(219, 2280) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3475 = INTERSECTION OF LINES X(1)X(4) AND X(7)X(55) (0.5740, 0.2434) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_354 = WEILL POINT (0.5823, 0.2533) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_1001 = MIDPOINT OF X(1) AND X(9) (0.5412, 0.1974) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_1471 = -BETH CONJUGATE OF X(1001) (0.6167, 0.3077) X_1 = INCENTER (0.5714, 0.2333) X_1827 = ZOSMA TRANSFORM OF X(7) (0.6082, 0.3740) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_2280 = -ISOCONJUGATE OF X(1002) (0.5750, 0.2304) X_3477 = ISOGONAL CONJUGATE OF X(3475) (0.5688, 0.2234) A B C X3475 X77 X354 X78 X1001 X3 X1471 X1 X1827 X219 X2280 X3477 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3477 = ISOGONAL CONJUGATE OF X_3475."""

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


        def construct_x_03477(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3477 = ISOGONAL CONJUGATE OF X_3475 on reference triangle ABC."""
            X_3475 = eval_trilinear_point(model, A, B, C, '2 + cos(A) + cos(B) + cos(C) + cos(B)*cos(C)', ID="X_3475", classes=["center"])
            X_3477 = isogonal_conjugate(model, A, B, C, X_3475, ID="X_3477", classes=["selected", "target"])
            X_77 = eval_trilinear_point(model, A, B, C, '1/(1 + sec(A))', ID="X_77", classes=["center", "incident"])
            X_354 = eval_trilinear_point(model, A, B, C, '(b - c)**(2) - a*b - a*c', ID="X_354", classes=["center", "incident"])
            central_line(model, X_77, X_354, 77, 354, incident=True)
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center", "incident"])
            X_1001 = eval_trilinear_point(model, A, B, C, 'a**(2) - a*(b + c) - 2*b*c', ID="X_1001", classes=["center", "incident"])
            central_line(model, X_78, X_1001, 78, 1001, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_1471 = point_from_barycentrics(model, A, B, C, 0.1843921, 0.30264097, 0.51296693, ID="X_1471", classes=["center", "incident"])
            central_line(model, X_3, X_1471, 3, 1471, incident=True)
            return promote_point_to_top(model, X_3477)


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