X1217

CRETAN PERSPECTOR

Using barycentric coordinates, let P =\(p : q : r\) be a point not on a sideline of triangle ABC, and let P' be the isogonal conjugate of P. Let DEF and D'E'F' be the pedal triangles of P and P', respectively. Let

X = PD'∩P'D, Y = PE'∩P'E, Z = PF'∩P'F.

< 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) { 20, 97 }: Central Line L(20, 97) { 3, 393 }: Central Line L(3, 393) { 4, 394 }: Central Line L(4, 394) { 254, 378 }: Central Line L(254, 378) { 5, 1073 }: Central Line L(5, 1073) { 2, 1093 }: Central Line L(2, 1093) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1181 = 2nd SARAGOSSA POINT OF X(3) (0.5894, 0.1559) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_97 = ISOGONAL CONJUGATE OF X(53) (0.4798, 0.0756) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_393 = -CROSS CONJUGATE OF X(4) (0.6247, 0.5263) X_4 = ORTHOCENTER (0.6122, 0.3958) X_394 = -CEVA CONJUGATE OF X(3) (0.3778, 0.0284) X_254 = -CROSS CONJUGATE OF X(4) (1.4506, 0.5587) X_378 = REFLECTION OF X(22) IN X(3) (0.5857, 0.3262) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_1073 = -CROSS CONJUGATE OF X(3) (0.4792, -0.4343) X_2 = CENTROID (0.5374, 0.2000) X_1093 = TRILINEAR CUBE OF X(4) (0.6189, 0.5667) X_1217 = CRETAN PERSPECTOR (0.5642, 0.3204) A B C X1181 X20 X97 X3 X393 X4 X394 X254 X378 X5 X1073 X2 X1093 X1217 (a, b, c) = (5, 6, 7) | AB = 1

X1217 (CRETAN PERSPECTOR) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1217 = CRETAN PERSPECTOR."""

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


        def construct_x_01217(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1217 = CRETAN PERSPECTOR on reference triangle ABC."""
            X_1181 = eval_trilinear_point(model, A, B, C, '((1 - cos(A)*sin(B)*sin(C))*cos(A))', ID="X_1181", classes=["center"])
            X_1217 = isogonal_conjugate(model, A, B, C, X_1181, ID="X_1217", classes=["selected", "target"])
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center", "incident"])
            X_97 = eval_trilinear_point(model, A, B, C, 'cot(A)*sec(B - C)', ID="X_97", classes=["center", "incident"])
            central_line(model, X_20, X_97, 20, 97, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_393 = eval_trilinear_point(model, A, B, C, 'b*c*(tan(A))**(2)', ID="X_393", classes=["center", "incident"])
            central_line(model, X_3, X_393, 3, 393, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_394 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A)', ID="X_394", classes=["center", "incident"])
            central_line(model, X_4, X_394, 4, 394, incident=True)
            return promote_point_to_top(model, X_1217)


        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_1217 on the given reference triangle."""
            model = create_model('X_1217 = CRETAN PERSPECTOR')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01217(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-01217.json"))
            write_center_svg(
                model_acute,
                here / "x-01217.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )