X2108

POINT KEPLER I

X2108 = perspector of 2nd Sharygin triangle and unary cofactor triangle of 1st Sharygin triangle
< 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, 39 }: Central Line L(1, 39) { 31, 43 }: Central Line L(31, 43) { 170, 411 }: Central Line L(170, 411) { 2, 846 }: Central Line L(2, 846) { 42, 1051 }: Central Line L(42, 1051) { 238, 1575 }: Central Line L(238, 1575) 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_39 = BROCARD MIDPOINT (0.5778, 0.2305) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_170 = -ALEPH CONJUGATE OF X(9) (0.4465, -0.0557) X_411 = EULER X(21)-2nd-SUBSTITUTION POINT (0.4414, -0.0514) X_2 = CENTROID (0.5374, 0.2000) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_1051 = POINT ALGORAB (0.5863, 0.2501) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_1575 = EXSIMILICENTER OF SPIEKER AND (1/2)-MOSES CIRCLES (2.5675, 1.8684) X_2108 = POINT KEPLER I (-0.3883, 0.6500) A B C X1 X39 X31 X43 X170 X411 X2 X846 X42 X1051 X238 X1575 X2108 (a, b, c) = (5, 6, 7) | AB = 1

X2108 (POINT KEPLER I) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2108 = POINT KEPLER I."""

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


        def construct_x_02108(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2108 = POINT KEPLER I on reference triangle ABC."""
            X_2108 = eval_trilinear_point(model, A, B, C, '((b + c)*a**(3) - (b**(2) - b*c + c**(2))*a**(2) - (b + c)*(b**(2) + c**(2))*a + b*c*(b**(2) + b*c + c**(2)))', ID="X_2108", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_39 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2))', ID="X_39", classes=["center", "incident"])
            central_line(model, X_1, X_39, 1, 39, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_43 = eval_trilinear_point(model, A, B, C, 'a*b + a*c - b*c', ID="X_43", classes=["center", "incident"])
            central_line(model, X_31, X_43, 31, 43, incident=True)
            X_170 = eval_trilinear_point(model, A, B, C, '(- (tan(A/2))*(sec(A/2))**(2) + (tan(B/2))*(sec(B/2))**(2) + (tan(C/2))*(sec(C/2))**(2))', ID="X_170", classes=["center", "incident"])
            X_411 = eval_trilinear_point(model, A, B, C, '(cos(B)*cos(C) - (cos(A) + cos(B) + cos(C))*cos(A))', ID="X_411", classes=["center", "incident"])
            central_line(model, X_170, X_411, 170, 411, incident=True)
            return promote_point_to_top(model, X_2108)


        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_2108 on the given reference triangle."""
            model = create_model('X_2108 = POINT KEPLER I')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02108(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-02108.json"))
            write_center_svg(
                model_acute,
                here / "x-02108.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )