X3428

ISOGONAL CONJUGATE OF X3427

< 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) { 20, 3434 }: Central Line L(20, 3434) { 1, 3 }: OI Line (Incenter–Circumcenter Line) { 101, 102 }: Central Line L(101, 102) { 8, 411 }: Central Line L(8, 411) { 221, 255 }: Central Line L(221, 255) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_3434 = ISOGONAL CONJUGATE OF X(3433) (0.5142, 0.2156) X_1 = INCENTER (0.5714, 0.2333) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_8 = NAGEL POINT (0.4694, 0.1333) X_411 = EULER X(21)-2nd-SUBSTITUTION POINT (0.4414, -0.0514) X_221 = -CEVA CONJUGATE OF X(56) (0.5474, -0.0688) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_3428 = ISOGONAL CONJUGATE OF X(3427) (0.4510, 0.0120) A B C X20 X3434 X1 X3 X101 X102 X8 X411 X221 X255 X3428 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3428 = ISOGONAL CONJUGATE OF X_3427."""

        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_barycentric_point,
            eval_trilinear_point,
            incenter_of,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03428(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3428 = ISOGONAL CONJUGATE OF X_3427 on reference triangle ABC."""
            X_3428 = eval_barycentric_point(model, A, B, C, '(a**(2)*(a**(5) - a**(4)*(b + c) - 2*a**(3)*(b**(2) + c**(2)) + 2*a**(2)*(b + c)*(b - c)**(2) + a*(b**(4) + 6*b**(2)*c**(2) + c**(4)) - (b + c)*(b - c)**(4)))', ID="X_3428", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            central_line(model, X_1, X_3, 1, 3, incident=True)
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            X_102 = eval_trilinear_point(model, A, B, C, '1/(sin(B)*(sec(A) - sec(B)) + sin(C)*(sec(A) - sec(C)))', ID="X_102", classes=["center", "incident"])
            central_line(model, X_101, X_102, 101, 102, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_411 = eval_trilinear_point(model, A, B, C, '(cos(B)*cos(C) - (cos(A) + cos(B) + cos(C))*cos(A))', ID="X_411", classes=["center", "incident"])
            central_line(model, X_8, X_411, 8, 411, incident=True)
            return promote_point_to_top(model, X_3428)


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