X2150

X2-ISOCONJUGATE OF X12

< 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, 163 }: Central Line L(6, 163) { 60, 283 }: Central Line L(60, 283) { 9, 1098 }: Central Line L(9, 1098) { 58, 1474 }: Central Line L(58, 1474) { 593, 1412 }: Central Line L(593, 1412) { 849, 1333 }: Central Line L(849, 1333) 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_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_60 = ISOGONAL CONJUGATE OF X(12) (0.5790, 0.2258) X_283 = -CROSS CONJUGATE OF X(21) (0.4475, 0.0704) X_9 = MITTENPUNKT (0.5110, 0.1615) X_1098 = TRILINEAR SQUARE OF X(21) (0.4785, 0.1286) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_1474 = -BETH CONJUGATE OF X(1172) (0.6165, 0.3951) X_593 = 1st HATZIPOLAKIS-YIU POINT (0.6202, 0.3026) X_1412 = -BETH CONJUGATE OF X(81) (0.6374, 0.3603) X_849 = 4th HATZIPOLAKIS-YIU POINT (0.6376, 0.3351) X_1333 = POINT ALULA (0.6308, 0.3181) X_2150 = -ISOCONJUGATE OF X(12) (0.6072, 0.2591) A B C X6 X163 X60 X283 X9 X1098 X58 X1474 X593 X1412 X849 X1333 X2150 (a, b, c) = (5, 6, 7) | AB = 1

X2150 (X2-ISOCONJUGATE OF X12) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2150 = X_2-ISOCONJUGATE OF X_12."""

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


        def construct_x_02150(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2150 = X_2-ISOCONJUGATE OF X_12 on reference triangle ABC."""
            X_593 = eval_trilinear_point(model, A, B, C, 'a/(b + c)**(2)', ID="X_593", classes=["center"])
            X_849 = eval_trilinear_point(model, A, B, C, '(a/(b + c))**(2)', ID="X_849", classes=["center"])
            X_2150 = ceva_conjugate(model, A, B, C, X_593, X_849, ID="X_2150", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_163 = eval_trilinear_point(model, A, B, C, '(sin(2*A))/(sin(2*B) - sin(2*C))', ID="X_163", classes=["center", "incident"])
            central_line(model, X_6, X_163, 6, 163, incident=True)
            X_60 = eval_trilinear_point(model, A, B, C, '1/(1 + cos(B - C))', ID="X_60", classes=["center", "incident"])
            X_283 = eval_trilinear_point(model, A, B, C, '(cos(A))/(cos(B) + cos(C))', ID="X_283", classes=["center", "incident"])
            central_line(model, X_60, X_283, 60, 283, incident=True)
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_1098 = eval_trilinear_point(model, A, B, C, '(1/(cos(B) + cos(C))**(2))', ID="X_1098", classes=["center", "incident"])
            central_line(model, X_9, X_1098, 9, 1098, incident=True)
            return promote_point_to_top(model, X_2150)


        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_2150 on the given reference triangle."""
            model = create_model('X_2150 = X_2-ISOCONJUGATE OF X_12')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02150(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-02150.json"))
            write_center_svg(
                model_acute,
                here / "x-02150.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )