X1098

TRILINEAR SQUARE OF X21

< 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) { 21, 60 }: Central Line L(21, 60) { 58, 86 }: Central Line L(58, 86) { 29, 270 }: Central Line L(29, 270) { 65, 409 }: Central Line L(65, 409) { 8, 643 }: Central Line L(8, 643) { 3, 662 }: Central Line L(3, 662) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1254 = ISOGONAL CONJUGATE OF X(1098) (0.6258, 0.3523) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_60 = ISOGONAL CONJUGATE OF X(12) (0.5790, 0.2258) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_270 = ISOGONAL CONJUGATE OF X(201) (0.6168, 0.3881) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_409 = EULER X(21)-1st-SUBSTITUTION POINT (0.5419, 0.2117) X_8 = NAGEL POINT (0.4694, 0.1333) X_643 = TRILINEAR MULTIPLIER FOR KIEPERT PARABOLA (0.0142, 0.3704) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_1098 = TRILINEAR SQUARE OF X(21) (0.4785, 0.1286) A B C X1254 X21 X60 X58 X86 X29 X270 X65 X409 X8 X643 X3 X662 X1098 (a, b, c) = (5, 6, 7) | AB = 1

X1098 (TRILINEAR SQUARE OF X21) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1098 = TRILINEAR SQUARE OF X_21."""

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


        def construct_x_01098(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1098 = TRILINEAR SQUARE OF X_21 on reference triangle ABC."""
            X_1098 = eval_trilinear_point(model, A, B, C, '(1/(cos(B) + cos(C))**(2))', ID="X_1098", classes=["selected", "target"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_60 = eval_trilinear_point(model, A, B, C, '1/(1 + cos(B - C))', ID="X_60", classes=["center", "incident"])
            central_line(model, X_21, X_60, 21, 60, incident=True)
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            X_86 = eval_trilinear_point(model, A, B, C, 'b*c/(b + c)', ID="X_86", classes=["center", "incident"])
            central_line(model, X_58, X_86, 58, 86, incident=True)
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            X_270 = eval_trilinear_point(model, A, B, C, '(sec(A))/(1 + cos(B - C))', ID="X_270", classes=["center", "incident"])
            central_line(model, X_29, X_270, 29, 270, incident=True)
            return promote_point_to_top(model, X_1098)


        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_1098 on the given reference triangle."""
            model = create_model('X_1098 = TRILINEAR SQUARE OF X_21')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01098(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-01098.json"))
            write_center_svg(
                model_acute,
                here / "x-01098.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )