X3460

X5-CEVA CONJUGATE OF X1

< 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) { 1, 54 }: Central Line L(1, 54) { 4, 484 }: Central Line L(4, 484) { 655, 1087 }: Central Line L(655, 1087) { 5, 2595 }: Central Line L(5, 2595) { 1726, 1745 }: Central Line L(1726, 1745) { 3336, 3459 }: Central Line L(3336, 3459) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_1 = INCENTER (0.5714, 0.2333) X_54 = KOSNITA POINT (0.5880, 0.2176) X_4 = ORTHOCENTER (0.6122, 0.3958) X_484 = 1st EVANS PERSPECTOR (2.0952, 3.0327) X_655 = TRILINEAR POLE OF LINE X(1)X(5) (1.0449, 0.2400) X_1087 = TRILINEAR SQUARE OF X(5) (0.5422, 0.2643) X_2595 = CROSSSUM OF PU(68) (0.5650, 0.2411) X_1726 = MIMOSA TRANSFORM OF X(75) (0.5578, 0.3872) X_1745 = MIMOSA TRANSFORM OF X(255) (0.4689, -0.1747) X_3336 = INTERSECTION OF LINES X(1)X(3) AND X(7)X(498) (0.6341, 0.3483) X_3459 = ISOGONAL CONJUGATE OF X(195) (0.3786, 0.1244) X_3460 = -CEVA CONJUGATE OF X(1) (0.5384, 0.2645) A B C X5 X1 X54 X4 X484 X655 X1087 X2595 X1726 X1745 X3336 X3459 X3460 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3460 = X_5-CEVA CONJUGATE OF X_1."""

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


        def construct_x_03460(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3460 = X_5-CEVA CONJUGATE OF X_1 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_484 = eval_trilinear_point(model, A, B, C, '1 + 2*(cos(A) - cos(B) - cos(C))', ID="X_484", classes=["center"])
            central_line(model, X_1, X_54, 1, 54)
            central_line(model, X_4, X_484, 4, 484)
            X_3460 = intersect_lines(model, X_1, X_54, X_4, X_484, ID="X_3460", classes=["selected", "target"])
            X_655 = eval_trilinear_point(model, A, B, C, '1/(cos(A - B) - cos(C- A))', ID="X_655", classes=["center", "incident"])
            X_1087 = eval_trilinear_point(model, A, B, C, '1 + cos(2*B - 2*C)', ID="X_1087", classes=["center", "incident"])
            central_line(model, X_655, X_1087, 655, 1087, incident=True)
            return promote_point_to_top(model, X_3460)


        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_3460 on the given reference triangle."""
            model = create_model('X_3460 = X_5-CEVA CONJUGATE OF X_1')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03460(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-03460.json"))
            write_center_svg(
                model_acute,
                here / "x-03460.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )