X1630

TCC-PERSPECTOR OF X284

X1630 is the tcc-perspector of X284.
< 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, 19 }: Central Line L(1, 19) { 101, 102 }: Central Line L(101, 102) { 109, 577 }: Central Line L(109, 577) { 1055, 1195 }: Central Line L(1055, 1195) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_19 = CLAWSON POINT (0.6246, 0.4244) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_577 = HARMONIC OF X(216) (0.4663, 0.0464) X_1055 = POINT ALIOTH (1.0459, 1.3483) X_1195 = 3rd SARAGOSSA POINT OF X(19) (0.6245, 0.2796) X_1630 = TCC-PERSPECTOR OF X(284) (0.4877, -0.0675) A B C X1 X19 X101 X102 X109 X577 X1055 X1195 X1630 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1630 = TCC-PERSPECTOR OF X_284."""

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


        def construct_x_01630(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1630 = TCC-PERSPECTOR OF X_284 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center"])
            X_102 = eval_trilinear_point(model, A, B, C, '1/(sin(B)*(sec(A) - sec(B)) + sin(C)*(sec(A) - sec(C)))', ID="X_102", classes=["center"])
            central_line(model, X_1, X_19, 1, 19)
            central_line(model, X_101, X_102, 101, 102)
            X_1630 = intersect_lines(model, X_1, X_19, X_101, X_102, ID="X_1630", classes=["selected", "target"])
            X_109 = eval_trilinear_point(model, A, B, C, 'a/(cos(B) - cos(C))', ID="X_109", classes=["center", "incident"])
            X_577 = eval_trilinear_point(model, A, B, C, 'sin(A)*(cos(A))**(2)', ID="X_577", classes=["center", "incident"])
            central_line(model, X_109, X_577, 109, 577, incident=True)
            return promote_point_to_top(model, X_1630)


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