X1075

X3-CEVA CONJUGATE OF X4

< 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) { 4, 51 }: Central Line L(4, 51) { 155, 450 }: Central Line L(155, 450) { 216, 631 }: Central Line L(216, 631) { 243, 920 }: Central Line L(243, 920) { 648, 1092 }: Central Line L(648, 1092) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_4 = ORTHOCENTER (0.6122, 0.3958) X_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_155 = EIGENCENTER OF ORTHIC TRIANGLE (1.1658, 0.5033) X_450 = -HIRST INVERSE OF X(4) (0.8978, 1.1430) X_216 = -CEVA CONJUGATE OF X(51) (0.5201, 0.1353) X_631 = 3/5*OG (0.5224, 0.1608) X_243 = -LINE CONJUGATE OF X(73) (0.7516, 0.9505) X_920 = -CEVA CONJUGATE OF X(1) (0.8006, 0.5344) X_648 = TRILINEAR POLE OF EULER LINE (0.4563, 0.5855) X_1092 = TRILINEAR CUBE OF X(3) (0.3503, 0.0118) X_1075 = -CEVA CONJUGATE OF X(4) (0.6630, 1.7036) A B C X3 X4 X51 X155 X450 X216 X631 X243 X920 X648 X1092 X1075 (a, b, c) = (5, 6, 7) | AB = 1

X1075 (X3-CEVA CONJUGATE OF X4) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1075 = X_3-CEVA CONJUGATE OF X_4."""

        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,
            ceva_conjugate,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            orthocenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01075(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1075 = X_3-CEVA CONJUGATE OF X_4 on reference triangle ABC."""
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_1075 = ceva_conjugate(model, A, B, C, X_3, X_4, ID="X_1075", classes=["selected", "target"])
            X_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center", "incident"])
            central_line(model, X_4, X_51, 4, 51, incident=True)
            X_155 = eval_trilinear_point(model, A, B, C, '(cos(A))*((cos(B))**(2) + (cos(C))**(2) - (cos(A))**(2))', ID="X_155", classes=["center", "incident"])
            X_450 = eval_trilinear_point(model, A, B, C, '(sec(A))*((cos(A))**(4) - (cos(B)*cos(C))**(2))', ID="X_450", classes=["center", "incident"])
            central_line(model, X_155, X_450, 155, 450, incident=True)
            X_216 = eval_trilinear_point(model, A, B, C, 'sin(2*A)*cos(B - C)', ID="X_216", classes=["center", "incident"])
            X_631 = eval_trilinear_point(model, A, B, C, '2*cos(A) + cos(B)*cos(C)', ID="X_631", classes=["center", "incident"])
            central_line(model, X_216, X_631, 216, 631, incident=True)
            return promote_point_to_top(model, X_1075)


        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_1075 on the given reference triangle."""
            model = create_model('X_1075 = X_3-CEVA CONJUGATE OF X_4')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01075(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-01075.json"))
            write_center_svg(
                model_acute,
                here / "x-01075.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )