X1568

ORTHOJOIN OF X800

X1568 = reflection of X125 in X2072
< 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) { 5, 51 }: Central Line L(5, 51) { 30, 113 }: Central Line L(30, 113) { 381, 394 }: Central Line L(381, 394) { 265, 539 }: Central Line L(265, 539) { 4, 801 }: Central Line L(4, 801) { 403, 511 }: Central Line L(403, 511) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_113 = JERABEK ANTIPODE (0.4319, 0.4718) X_381 = MIDPOINT OF X(2) AND X(4) (0.5748, 0.2979) X_394 = -CEVA CONJUGATE OF X(3) (0.3778, 0.0284) X_265 = REFLECTION OF X(3) IN X(125) (0.8606, -0.0500) X_539 = DIRECTION OF VECTOR AX + BX + CX, where X = X(54) (1.0917, 0.3927) X_4 = ORTHOCENTER (0.6122, 0.3958) X_801 = ISOGONAL CONJUGATE OF X(800) (0.4263, 0.1232) X_403 = OF THE ORTHIC TRIANGLE (0.7040, 0.6358) X_511 = ISOGONAL CONJUGATE OF X(98) (0.2335, -0.3020) X_1568 = ORTHOJOIN OF X(800) (0.1362, -0.3019) A B C X5 X51 X30 X113 X381 X394 X265 X539 X4 X801 X403 X511 X1568 (a, b, c) = (5, 6, 7) | AB = 1

X1568 (ORTHOJOIN OF X800) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1568 = ORTHOJOIN OF X_800."""

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


        def construct_x_01568(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1568 = ORTHOJOIN OF X_800 on reference triangle ABC."""
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center"])
            X_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center"])
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center"])
            X_113 = eval_trilinear_point(model, A, B, C, 'sin(B)*sin(C)*((sin(C))/(cos(C) - 2*cos(A)*cos(B)) + (sin(B))/(cos(B) - 2*cos(A)*cos(C)))', ID="X_113", classes=["center"])
            central_line(model, X_5, X_51, 5, 51)
            central_line(model, X_30, X_113, 30, 113)
            X_1568 = intersect_lines(model, X_5, X_51, X_30, X_113, ID="X_1568", classes=["selected", "target"])
            X_381 = eval_trilinear_point(model, A, B, C, '2*cos(B - C) - cos(A)', ID="X_381", 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_381, X_394, 381, 394, incident=True)
            return promote_point_to_top(model, X_1568)


        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_1568 on the given reference triangle."""
            model = create_model('X_1568 = ORTHOJOIN OF X_800')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01568(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-01568.json"))
            write_center_svg(
                model_acute,
                here / "x-01568.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )