X1898

ZOSMA TRANSFORM OF X1068

X1898 = reflection of X65 in X1837
< 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) { 65, 1837 }: Central Line L(65, 1837) { 4, 65 }: Central Line L(4, 65) { 3, 90 }: Central Line L(3, 90) { 21, 662 }: Central Line L(21, 662) { 354, 496 }: Central Line L(354, 496) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_1837 = ZOSMA TRANSFORM OF X(34) (0.5972, 0.2070) X_4 = ORTHOCENTER (0.6122, 0.3958) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_90 = -CROSS CONJUGATE OF X(1) (0.1022, 0.0201) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_354 = WEILL POINT (0.5823, 0.2533) X_496 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(495) (0.5843, 0.2201) X_1898 = ZOSMA TRANSFORM OF X(1068) (0.5903, 0.1207) A B C X65 X1837 X4 X3 X90 X21 X662 X354 X496 X1898 (a, b, c) = (5, 6, 7) | AB = 1

X1898 (ZOSMA TRANSFORM OF X1068) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1898 = ZOSMA TRANSFORM OF X_1068."""

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


        def construct_x_01898(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1898 = ZOSMA TRANSFORM OF X_1068 on reference triangle ABC."""
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center"])
            X_1837 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - 2*cos(B)*cos(C)', ID="X_1837", classes=["center"])
            X_1898 = reflection_in_point(model, X_65, X_1837, ID="X_1898", classes=["selected", "target"], guide=False)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            central_line(model, X_4, X_65, 4, 65, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_90 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A))', ID="X_90", classes=["center", "incident"])
            central_line(model, X_3, X_90, 3, 90, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center", "incident"])
            central_line(model, X_21, X_662, 21, 662, incident=True)
            return promote_point_to_top(model, X_1898)


        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_1898 on the given reference triangle."""
            model = create_model('X_1898 = ZOSMA TRANSFORM OF X_1068')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01898(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-01898.json"))
            write_center_svg(
                model_acute,
                here / "x-01898.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )