X3129

X13-CEVA CONJUGATE OF X6

< 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, 3 }: Euler Line { 51, 62 }: Central Line L(51, 62) { 61, 184 }: Central Line L(61, 184) { 15, 1495 }: Central Line L(15, 1495) { 13, 1605 }: Central Line L(13, 1605) { 1251, 1953 }: Central Line L(1251, 1953) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_62 = ISOGONAL CONJUGATE OF X(18) (0.6446, 0.3409) X_61 = ISOGONAL CONJUGATE OF X(17) (0.5764, 0.2283) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_15 = 1st ISODYNAMIC POINT (0.5519, 0.1878) X_1495 = CROSSSUM OF X(2) AND X(30) (0.8194, 1.4855) X_1605 = TCC-PERSPECTOR OF X(13) (0.5477, 0.3253) X_1251 = ISOGONAL CONJUGATE OF X(1082) (0.5908, 0.2784) X_1953 = BICENTRIC SUM OF PU(21) (0.5856, 0.2841) X_3129 = -CEVA CONJUGATE OF X(6) (0.5743, 0.2966) A B C X13 X6 X2 X3 X51 X62 X61 X184 X15 X1495 X1605 X1251 X1953 X3129 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3129 = X_13-CEVA CONJUGATE OF X_6."""

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


        def construct_x_03129(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3129 = X_13-CEVA CONJUGATE OF X_6 on reference triangle ABC."""
            X_2992 = point_from_barycentrics(model, A, B, C, 0.31568835, 0.39151037, 0.29280128, ID="X_2992", classes=["center"])
            X_3129 = isogonal_conjugate(model, A, B, C, X_2992, ID="X_3129", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center", "incident"])
            X_62 = eval_trilinear_point(model, A, B, C, 'sin(A -  pi  /6)', ID="X_62", classes=["center", "incident"])
            central_line(model, X_51, X_62, 51, 62, incident=True)
            X_61 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /6)', ID="X_61", classes=["center", "incident"])
            X_184 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A)', ID="X_184", classes=["center", "incident"])
            central_line(model, X_61, X_184, 61, 184, incident=True)
            return promote_point_to_top(model, X_3129)


        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_3129 on the given reference triangle."""
            model = create_model('X_3129 = X_13-CEVA CONJUGATE OF X_6')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03129(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-03129.json"))
            write_center_svg(
                model_acute,
                here / "x-03129.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )