X234

X7-CEVA CONJUGATE OF X177

< 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) { 2, 178 }: Central Line L(2, 178) { 7, 174 }: Central Line L(7, 174) { 57, 362 }: Central Line L(57, 362) { 75, 556 }: Central Line L(75, 556) { 555, 1088 }: Central Line L(555, 1088) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_7 = GERGONNE POINT (0.5903, 0.2769) X_177 = 1st MID-ARC POINT (0.5862, 0.2654) X_2 = CENTROID (0.5374, 0.2000) X_178 = 2nd MID-ARC POINT (0.5439, 0.2098) X_174 = YFF CENTER OF CONGRUENCE (0.5813, 0.2549) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_362 = CONGRUENT CIRCUMCIRCLES ISOSCELIZER POINT (0.5299, 0.2081) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_556 = (X(1),X(75))-ANSWER TO QUESTION A (0.4842, 0.1501) X_555 = (X(1),X(158))-ANSWER TO QUESTION A (0.5982, 0.2990) X_1088 = TRILINEAR SQUARE OF X(7) (0.6052, 0.3210) X_234 = -CEVA CONJUGATE OF X(177) (0.5946, 0.2875) A B C X7 X177 X2 X178 X174 X57 X362 X75 X556 X555 X1088 X234 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_234 = X_7-CEVA CONJUGATE OF X_177."""

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


        def construct_x_00234(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_234 = X_7-CEVA CONJUGATE OF X_177 on reference triangle ABC."""
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_177 = eval_trilinear_point(model, A, B, C, '(cos(B/2) + cos(C/2))*sec(A/2)', ID="X_177", classes=["center"])
            X_234 = ceva_conjugate(model, A, B, C, X_7, X_177, ID="X_234", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_178 = eval_trilinear_point(model, A, B, C, '(cos(B/2) + cos(C/2))*csc(A)', ID="X_178", classes=["center", "incident"])
            central_line(model, X_2, X_178, 2, 178, incident=True)
            X_174 = eval_trilinear_point(model, A, B, C, 'sec(A/2)', ID="X_174", classes=["center", "incident"])
            central_line(model, X_7, X_174, 7, 174, incident=True)
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_362 = eval_trilinear_point(model, A, B, C, 'b*cos(B/2) + c*cos(C/2) - a*cos(A/2)', ID="X_362", classes=["center", "incident"])
            central_line(model, X_57, X_362, 57, 362, incident=True)
            return promote_point_to_top(model, X_234)


        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_234 on the given reference triangle."""
            model = create_model('X_234 = X_7-CEVA CONJUGATE OF X_177')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00234(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-00234.json"))
            write_center_svg(
                model_acute,
                here / "x-00234.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )