X1175

1st SARAGOSSA POINT OF X65

< 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, 60 }: Central Line L(3, 60) { 21, 72 }: Central Line L(21, 72) { 28, 65 }: Central Line L(28, 65) { 35, 71 }: Central Line L(35, 71) { 58, 73 }: Central Line L(58, 73) { 69, 261 }: Central Line L(69, 261) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_442 = COMPLEMENT OF SCHIFFLER POINT (0.5418, 0.2114) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_60 = ISOGONAL CONJUGATE OF X(12) (0.5790, 0.2258) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_261 = ISOTOMIC CONJUGATE OF X(12) (0.5072, 0.1625) X_1175 = 1st SARAGOSSA POINT OF X(65) (0.5976, 0.2549) A B C X442 X3 X60 X21 X72 X28 X65 X35 X71 X58 X73 X69 X261 X1175 (a, b, c) = (5, 6, 7) | AB = 1

X1175 (1st SARAGOSSA POINT OF X65) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1175 = 1st SARAGOSSA POINT OF X_65."""

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


        def construct_x_01175(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1175 = 1st SARAGOSSA POINT OF X_65 on reference triangle ABC."""
            X_442 = point_from_barycentrics(model, A, B, C, 0.3215734, 0.32603406, 0.35239254, ID="X_442", classes=["center"])
            X_1175 = isogonal_conjugate(model, A, B, C, X_442, ID="X_1175", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", 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_3, X_60, 3, 60, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_72 = eval_trilinear_point(model, A, B, C, '(b + c)*cot(A)', ID="X_72", classes=["center", "incident"])
            central_line(model, X_21, X_72, 21, 72, incident=True)
            X_28 = eval_trilinear_point(model, A, B, C, '(tan(A))/(b + c)', ID="X_28", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_28, X_65, 28, 65, incident=True)
            return promote_point_to_top(model, X_1175)


        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_1175 on the given reference triangle."""
            model = create_model('X_1175 = 1st SARAGOSSA POINT OF X_65')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01175(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-01175.json"))
            write_center_svg(
                model_acute,
                here / "x-01175.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )