X288

CEVAPOINT OF X6 AND X54

X288 is the cevapoint of X6 and X54.
< 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) { 51, 54 }: Central Line L(51, 54) { 97, 216 }: Central Line L(97, 216) { 53, 275 }: Central Line L(53, 275) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_54 = KOSNITA POINT (0.5880, 0.2176) X_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_97 = ISOGONAL CONJUGATE OF X(53) (0.4798, 0.0756) X_216 = -CEVA CONJUGATE OF X(51) (0.5201, 0.1353) X_53 = SYMMEDIAN POINT OF ORTHIC TRIANGLE (0.6164, 0.4390) X_275 = CEVAPOINT OF ORTHOCENTER AND SYMMEDIAN POINT (0.6057, 0.3473) X_288 = CEVAPOINT OF X(6) AND X(54) (0.5936, 0.2442) A B C X6 X54 X51 X97 X216 X53 X275 X288 (a, b, c) = (5, 6, 7) | AB = 1

X288 (CEVAPOINT OF X6 AND X54) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_288 = CEVAPOINT OF X_6 AND X_54."""

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


        def construct_x_00288(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_288 = CEVAPOINT OF X_6 AND X_54 on reference triangle ABC."""
            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"])
            X_288 = isogonal_conjugate(model, A, B, C, X_233, ID="X_288", classes=["selected", "target"])
            X_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center", "incident"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center", "incident"])
            central_line(model, X_51, X_54, 51, 54, incident=True)
            X_97 = eval_trilinear_point(model, A, B, C, 'cot(A)*sec(B - C)', ID="X_97", classes=["center", "incident"])
            X_216 = eval_trilinear_point(model, A, B, C, 'sin(2*A)*cos(B - C)', ID="X_216", classes=["center", "incident"])
            central_line(model, X_97, X_216, 97, 216, incident=True)
            X_53 = eval_trilinear_point(model, A, B, C, 'tan(A)*cos(B - C)', ID="X_53", classes=["center", "incident"])
            X_275 = eval_trilinear_point(model, A, B, C, 'csc(2*A)*sec(B - C)', ID="X_275", classes=["center", "incident"])
            central_line(model, X_53, X_275, 53, 275, incident=True)
            return promote_point_to_top(model, X_288)


        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_288 on the given reference triangle."""
            model = create_model('X_288 = CEVAPOINT OF X_6 AND X_54')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00288(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-00288.json"))
            write_center_svg(
                model_acute,
                here / "x-00288.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )