X87

X2-CROSS CONJUGATE OF X1

< 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) { 6, 43 }: Central Line L(6, 43) { 1, 192 }: Central Line L(1, 192) { 34, 242 }: Central Line L(34, 242) { 56, 238 }: Central Line L(56, 238) { 9, 292 }: Central Line L(9, 292) { 10, 979 }: Central Line L(10, 979) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_1 = INCENTER (0.5714, 0.2333) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_192 = -CEVA CONJUGATE OF X(2) (CONGRUENT PARALLELIANS POINT) (0.6147, 0.2635) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_242 = -LINE CONJUGATE OF X(71) (0.7507, 0.7161) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_9 = MITTENPUNKT (0.5110, 0.1615) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_979 = -CROSS CONJUGATE OF X(1) (-0.0435, -0.0124) X_87 = -CROSS CONJUGATE OF X(1) (0.4794, 0.1691) A B C X2 X1 X6 X43 X192 X34 X242 X56 X238 X9 X292 X10 X979 X87 (a, b, c) = (5, 6, 7) | AB = 1

X87 (X2-CROSS CONJUGATE OF X1) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_87 = X_2-CROSS CONJUGATE OF X_1."""

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


        def construct_x_00087(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_87 = X_2-CROSS CONJUGATE OF X_1 on reference triangle ABC."""
            X_43 = eval_trilinear_point(model, A, B, C, 'a*b + a*c - b*c', ID="X_43", classes=["center"])
            X_87 = isogonal_conjugate(model, A, B, C, X_43, ID="X_87", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_6, X_43, 6, 43, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_192 = eval_trilinear_point(model, A, B, C, 'b*c*(c*a + a*b - b*c)', ID="X_192", classes=["center", "incident"])
            central_line(model, X_1, X_192, 1, 192, incident=True)
            X_34 = eval_trilinear_point(model, A, B, C, '1 - sec(A)', ID="X_34", classes=["center", "incident"])
            X_242 = eval_trilinear_point(model, A, B, C, '((sec(A))*((sin(A))**(2) - sin(B)*sin(C)))', ID="X_242", classes=["center", "incident"])
            central_line(model, X_34, X_242, 34, 242, incident=True)
            return promote_point_to_top(model, X_87)


        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_87 on the given reference triangle."""
            model = create_model('X_87 = X_2-CROSS CONJUGATE OF X_1')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00087(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-00087.json"))
            write_center_svg(
                model_acute,
                here / "x-00087.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )