X3130

X14-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, 61 }: Central Line L(51, 61) { 62, 184 }: Central Line L(62, 184) { 16, 1495 }: Central Line L(16, 1495) { 14, 1606 }: Central Line L(14, 1606) { 618, 2925 }: Central Line L(618, 2925) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_14 = 2nd ISOGONIC CENTER (0.9134, -0.1143) 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_61 = ISOGONAL CONJUGATE OF X(17) (0.5764, 0.2283) X_62 = ISOGONAL CONJUGATE OF X(18) (0.6446, 0.3409) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_16 = 2nd ISODYNAMIC POINT (1.8453, 2.3239) X_1495 = CROSSSUM OF X(2) AND X(30) (0.8194, 1.4855) X_1606 = TCC-PERSPECTOR OF X(14) (0.8673, -0.5199) X_618 = COMPLEMENT OF X(13) (0.5122, 0.1590) X_2925 = TANGENTIAL-ISOGONAL CONJUGATE OF X(15) (0.4517, 0.0032) X_3130 = -CEVA CONJUGATE OF X(6) (1.1238, 1.7343) A B C X14 X6 X2 X3 X51 X61 X62 X184 X16 X1495 X1606 X618 X2925 X3130 (a, b, c) = (5, 6, 7) | AB = 1

X3130 (X14-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_3130 = X_14-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_03130(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3130 = X_14-CEVA CONJUGATE OF X_6 on reference triangle ABC."""
            X_2993 = point_from_barycentrics(model, A, B, C, 0.34130203, 0.94673925, -0.28804128, ID="X_2993", classes=["center"])
            X_3130 = isogonal_conjugate(model, A, B, C, X_2993, ID="X_3130", 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_61 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /6)', ID="X_61", classes=["center", "incident"])
            central_line(model, X_51, X_61, 51, 61, incident=True)
            X_62 = eval_trilinear_point(model, A, B, C, 'sin(A -  pi  /6)', ID="X_62", 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_62, X_184, 62, 184, incident=True)
            return promote_point_to_top(model, X_3130)


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