X1065

ISOGONAL CONJUGATE OF X1064

< 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) { 102, 226 }: Central Line L(102, 226) { 3, 388 }: Central Line L(3, 388) { 284, 515 }: Central Line L(284, 515) { 4, 1036 }: Central Line L(4, 1036) { 283, 1010 }: Central Line L(283, 1010) { 497, 1057 }: Central Line L(497, 1057) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1064 = INTERSECTION OF LINES X(1)X(4) AND X(3)X(31) (0.5648, 0.2070) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_515 = ISOGONAL CONJUGATE OF X(102) (0.6804, 0.7691) X_4 = ORTHOCENTER (0.6122, 0.3958) X_1036 = ISOGONAL CONJUGATE OF X(388) (0.5632, 0.2044) X_283 = -CROSS CONJUGATE OF X(21) (0.4475, 0.0704) X_1010 = INTERCEPT OF EULER LINE AND LINE X(1)X(75) (0.5391, 0.2043) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_1057 = ISOGONAL CONJUGATE OF X(1056) (0.5671, 0.2170) X_1065 = ISOGONAL CONJUGATE OF X(1064) (0.5777, 0.2607) A B C X1064 X102 X226 X3 X388 X284 X515 X4 X1036 X283 X1010 X497 X1057 X1065 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1065 = ISOGONAL CONJUGATE OF X_1064."""

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


        def construct_x_01065(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1065 = ISOGONAL CONJUGATE OF X_1064 on reference triangle ABC."""
            X_1064 = eval_trilinear_point(model, A, B, C, '(1 + cos(A)*(cos(B) + cos(C)))', ID="X_1064", classes=["center"])
            X_1065 = isogonal_conjugate(model, A, B, C, X_1064, ID="X_1065", classes=["selected", "target"])
            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"])
            X_226 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cos(B) + cos(C))', ID="X_226", classes=["center", "incident"])
            central_line(model, X_102, X_226, 102, 226, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_388 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) + (b + c)**(2))/(b + c - a)', ID="X_388", classes=["center", "incident"])
            central_line(model, X_3, X_388, 3, 388, incident=True)
            X_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center", "incident"])
            X_515 = eval_trilinear_point(model, A, B, C, '(b + c)*sec(A) - b*sec(B) - c*sec(C)', ID="X_515", classes=["center", "incident"])
            central_line(model, X_284, X_515, 284, 515, incident=True)
            return promote_point_to_top(model, X_1065)


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