X3462

X5-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, 54 }: Central Line L(4, 54) { 2, 1075 }: Central Line L(2, 1075) { 233, 1249 }: Central Line L(233, 1249) { 499, 1148 }: Central Line L(499, 1148) { 195, 2121 }: Central Line L(195, 2121) { 3336, 3461 }: Central Line L(3336, 3461) 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_4 = ORTHOCENTER (0.6122, 0.3958) X_54 = KOSNITA POINT (0.5880, 0.2176) X_2 = CENTROID (0.5374, 0.2000) X_1075 = -CEVA CONJUGATE OF X(4) (0.6630, 1.7036) X_233 = -CEVA CONJUGATE OF X(140) (0.5475, 0.2218) X_1249 = ISOGONAL CONJUGATE OF X(1073) (-0.9482, -15.9845) X_499 = {X(1),X(2)}-HARMONIC CONJUGATE OF X(498) (0.4458, 0.1102) X_1148 = YIU-HATZIPOLAKIS POINT (0.4716, -1.3697) X_195 = -CEVA CONJUGATE OF X(3) (0.6761, 0.3331) X_2121 = ISOGONAL CONJUGATE OF X(2120) (0.6451, 0.1816) X_3336 = INTERSECTION OF LINES X(1)X(3) AND X(7)X(498) (0.6341, 0.3483) X_3461 = ISOGONAL CONJUGATE OF X(3460) (0.6102, 0.2013) X_3462 = -CEVA CONJUGATE OF X(4) (0.4603, -0.7229) A B C X5 X4 X54 X2 X1075 X233 X1249 X499 X1148 X195 X2121 X3336 X3461 X3462 (a, b, c) = (5, 6, 7) | AB = 1

X3462 (X5-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_3462 = X_5-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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            intersect_lines,
            orthocenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03462(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3462 = X_5-CEVA CONJUGATE OF X_4 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_1075 = eval_trilinear_point(model, A, B, C, '(sec(A))*((sec(B))**(2) + (sec(C))**(2) - (sec(A))**(2))', ID="X_1075", classes=["center"])
            central_line(model, X_4, X_54, 4, 54)
            central_line(model, X_2, X_1075, 2, 1075)
            X_3462 = intersect_lines(model, X_4, X_54, X_2, X_1075, ID="X_3462", classes=["selected", "target"])
            X_233 = eval_trilinear_point(model, A, B, C, '(b*cos(C - A) + c*cos(B - A))*cos(B - C)', ID="X_233", classes=["center", "incident"])
            X_1249 = eval_trilinear_point(model, A, B, C, '(tan(A))*(cos(A) - cos(B)*cos(C))', ID="X_1249", classes=["center", "incident"])
            central_line(model, X_233, X_1249, 233, 1249, incident=True)
            return promote_point_to_top(model, X_3462)


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