X1067

ISOGONAL CONJUGATE OF X1066

< 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, 496 }: Central Line L(3, 496) { 4, 1037 }: Central Line L(4, 1037) { 388, 1059 }: Central Line L(388, 1059) { 946, 951 }: Central Line L(946, 951) { 947, 950 }: Central Line L(947, 950) { 1036, 1058 }: Central Line L(1036, 1058) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1066 = HASTINGS POINT (0.5873, 0.2963) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_496 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(495) (0.5843, 0.2201) X_4 = ORTHOCENTER (0.6122, 0.3958) X_1037 = CEVAPOINT OF X(55) AND X(56) (0.5823, 0.2853) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_1059 = ISOGONAL CONJUGATE OF X(1058) (0.5764, 0.2549) X_946 = MIDPOINT OF X(1) AND X(4) (0.5918, 0.3145) X_951 = ISOGONAL CONJUGATE OF X(950) (0.5800, 0.2727) X_947 = ISOGONAL CONJUGATE OF X(946) (0.5457, 0.1609) X_950 = CROSSPOINT OF X(8) AND X(29) (0.5621, 0.1961) X_1036 = ISOGONAL CONJUGATE OF X(388) (0.5632, 0.2044) X_1058 = POINT ALKALUROPS (0.5662, 0.2123) X_1067 = ISOGONAL CONJUGATE OF X(1066) (0.5526, 0.1758) A B C X1066 X3 X496 X4 X1037 X388 X1059 X946 X951 X947 X950 X1036 X1058 X1067 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1067 = ISOGONAL CONJUGATE OF X_1066."""

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


        def construct_x_01067(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1067 = ISOGONAL CONJUGATE OF X_1066 on reference triangle ABC."""
            X_1066 = eval_trilinear_point(model, A, B, C, '(1 - cos(A)*(cos(B) + cos(C)))', ID="X_1066", classes=["center"])
            X_1067 = isogonal_conjugate(model, A, B, C, X_1066, ID="X_1067", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_496 = eval_trilinear_point(model, A, B, C, '2 - cos(B - C)', ID="X_496", classes=["center", "incident"])
            central_line(model, X_3, X_496, 3, 496, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_1037 = eval_trilinear_point(model, A, B, C, '(1/(1 - cos(B)*cos(C)))', ID="X_1037", classes=["center", "incident"])
            central_line(model, X_4, X_1037, 4, 1037, incident=True)
            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"])
            X_1059 = eval_trilinear_point(model, A, B, C, '(1/(2 - cos(B)*cos(C)))', ID="X_1059", classes=["center", "incident"])
            central_line(model, X_388, X_1059, 388, 1059, incident=True)
            return promote_point_to_top(model, X_1067)


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