X1096

TRILINEAR SQUARE OF X19

< 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) { 1, 29 }: Central Line L(1, 29) { 19, 31 }: Central Line L(19, 31) { 33, 42 }: Central Line L(33, 42) { 34, 207 }: Central Line L(34, 207) { 63, 240 }: Central Line L(63, 240) { 213, 607 }: Central Line L(213, 607) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_158 = -CROSS CONJUGATE OF X(92) (0.6215, 0.5117) X_19 = CLAWSON POINT (0.6246, 0.4244) X_1 = INCENTER (0.5714, 0.2333) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_207 = -CEVA CONJUGATE OF X(34) (0.5818, 0.9198) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_213 = -CEVA CONJUGATE OF X(42) (0.6135, 0.2833) X_607 = ISOGONAL CONJUGATE OF X(348) (0.6187, 0.3865) X_1096 = TRILINEAR SQUARE OF X(19) (0.6263, 0.5385) A B C X158 X19 X1 X29 X31 X33 X42 X34 X207 X63 X240 X213 X607 X1096 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1096 = TRILINEAR SQUARE OF X_19."""

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


        def construct_x_01096(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1096 = TRILINEAR SQUARE OF X_19 on reference triangle ABC."""
            X_326 = eval_trilinear_point(model, A, B, C, '(cot(A))**(2)', ID="X_326", classes=["center"])
            X_1096 = isogonal_conjugate(model, A, B, C, X_326, ID="X_1096", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            central_line(model, X_1, X_29, 1, 29, incident=True)
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            central_line(model, X_19, X_31, 19, 31, incident=True)
            X_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center", "incident"])
            X_42 = eval_trilinear_point(model, A, B, C, 'a*(b + c)', ID="X_42", classes=["center", "incident"])
            central_line(model, X_33, X_42, 33, 42, incident=True)
            return promote_point_to_top(model, X_1096)


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