X1054

6th SHARYGIN POINT

X1054 = reflection of X1 in X106
< 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, 106 }: Central Line L(1, 106) { 1, 88 }: Central Line L(1, 88) { 43, 57 }: Central Line L(43, 57) { 105, 165 }: Central Line L(105, 165) { 2, 846 }: Central Line L(2, 846) 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_106 = Λ(INCENTER, CENTROID) (1.0000, 0.0000) X_88 = ISOGONAL CONJUGATE OF X(44) (1.0000, 0.0000) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_165 = CENTROID OF THE EXCENTRAL TRIANGLE (0.4762, 0.0583) X_2 = CENTROID (0.5374, 0.2000) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_1054 = 6th SHARYGIN POINT (1.4286, -0.2333) A B C X1 X106 X88 X43 X57 X105 X165 X2 X846 X1054 (a, b, c) = (5, 6, 7) | AB = 1

X1054 (6th SHARYGIN POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1054 = 6th SHARYGIN POINT."""

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


        def construct_x_01054(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1054 = 6th SHARYGIN POINT on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_106 = eval_trilinear_point(model, A, B, C, 'a/(2*a - b - c)', ID="X_106", classes=["center"])
            X_1054 = reflection_in_point(model, X_1, X_106, ID="X_1054", classes=["selected", "target"], guide=False)
            X_88 = eval_trilinear_point(model, A, B, C, '1/(b + c - 2*a)', ID="X_88", classes=["center", "incident"])
            central_line(model, X_1, X_88, 1, 88, incident=True)
            X_43 = eval_trilinear_point(model, A, B, C, 'a*b + a*c - b*c', ID="X_43", classes=["center", "incident"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            central_line(model, X_43, X_57, 43, 57, incident=True)
            X_105 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2) - a*(b + c))', ID="X_105", classes=["center", "incident"])
            X_165 = eval_trilinear_point(model, A, B, C, 'tan(B/2) + tan(C/2) - tan(A/2)', ID="X_165", classes=["center", "incident"])
            central_line(model, X_105, X_165, 105, 165, incident=True)
            return promote_point_to_top(model, X_1054)


        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_1054 on the given reference triangle."""
            model = create_model('X_1054 = 6th SHARYGIN POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01054(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-01054.json"))
            write_center_svg(
                model_acute,
                here / "x-01054.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )