X1609

TCC-PERSPECTOR OF X19

X1609 is the tcc-perspector 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) { 3, 6 }: Brocard Axis { 25, 53 }: Central Line L(25, 53) { 24, 254 }: Central Line L(24, 254) { 159, 237 }: Central Line L(159, 237) { 48, 1195 }: Central Line L(48, 1195) { 112, 1299 }: Central Line L(112, 1299) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_107 = Ψ(SYMMEDIAN POINT, ORTHOCENTER) (0.5733, 0.6071) X_249 = ISOGONAL CONJUGATE OF X(115) (0.5045, 0.3948) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_53 = SYMMEDIAN POINT OF ORTHIC TRIANGLE (0.6164, 0.4390) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_254 = -CROSS CONJUGATE OF X(4) (1.4506, 0.5587) X_159 = -OF-TANGENTIAL-TRIANGLE (0.4211, -0.7266) X_237 = -LINE CONJUGATE OF X(2) (0.9894, 1.3825) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_1195 = 3rd SARAGOSSA POINT OF X(19) (0.6245, 0.2796) X_112 = Ψ(ORTHOCENTER, SYMMEDIAN POINT) (0.5162, 0.6121) X_1299 = COLLINGS TRANSFORM OF X(135) (0.7905, 0.5216) X_1609 = TCC-PERSPECTOR OF X(19) (0.7601, 0.5316) A B C X107 X249 X3 X6 X25 X53 X24 X254 X159 X237 X48 X1195 X112 X1299 X1609 (a, b, c) = (5, 6, 7) | AB = 1

X1609 (TCC-PERSPECTOR OF X19) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1609 = TCC-PERSPECTOR 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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            crosspoint,
            eval_trilinear_point,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01609(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1609 = TCC-PERSPECTOR OF X_19 on reference triangle ABC."""
            X_107 = eval_trilinear_point(model, A, B, C, '1/(cos(A)*(sin(2*B) - sin(2*C)))', ID="X_107", classes=["center"])
            X_249 = eval_trilinear_point(model, A, B, C, '(csc(A))*(csc(B - C))**(2)', ID="X_249", classes=["center"])
            X_1609 = crosspoint(model, A, B, C, X_107, X_249, ID="X_1609", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_3, X_6, 3, 6, incident=True)
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_53 = eval_trilinear_point(model, A, B, C, 'tan(A)*cos(B - C)', ID="X_53", classes=["center", "incident"])
            central_line(model, X_25, X_53, 25, 53, incident=True)
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center", "incident"])
            X_254 = eval_trilinear_point(model, A, B, C, '(sec(A))/((cos(B))**(2) + (cos(C))**(2) - (cos(A))**(2))', ID="X_254", classes=["center", "incident"])
            central_line(model, X_24, X_254, 24, 254, incident=True)
            return promote_point_to_top(model, X_1609)


        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_1609 on the given reference triangle."""
            model = create_model('X_1609 = TCC-PERSPECTOR OF X_19')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01609(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-01609.json"))
            write_center_svg(
                model_acute,
                here / "x-01609.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )