X2281

X2-ISOCONJUGATE OF X1010

< 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) { 6, 63 }: Central Line L(6, 63) { 32, 48 }: Central Line L(32, 48) { 71, 213 }: Central Line L(71, 213) { 966, 981 }: Central Line L(966, 981) { 31, 1974 }: Central Line L(31, 1974) { 729, 1310 }: Central Line L(729, 1310) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2221 = -ISOCONJUGATE OF X(612) (0.6101, 0.2802) X_1245 = ISOGONAL CONJUGATE OF X(1010) (0.5991, 0.2625) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_213 = -CEVA CONJUGATE OF X(42) (0.6135, 0.2833) X_966 = INTERSECTION OF LINES X(2)X(6) AND X(4)X(9) (0.5191, 0.1803) X_981 = ISOGONAL CONJUGATE OF X(980) (0.5781, 0.2464) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_1974 = BARYCENTRIC PRODUCT OF PU(39) (0.6402, 0.4907) X_729 = EVEN (- 2, 0) CIRCUMCIRCLE POINT (1.0096, 0.1290) X_1310 = COLLINGS TRANSFORM OF X(940) (0.1699, 0.4912) X_2281 = -ISOCONJUGATE OF X(1010) (0.6224, 0.2961) A B C X2221 X1245 X6 X63 X32 X48 X71 X213 X966 X981 X31 X1974 X729 X1310 X2281 (a, b, c) = (5, 6, 7) | AB = 1

X2281 (X2-ISOCONJUGATE OF X1010) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2281 = X_2-ISOCONJUGATE OF X_1010."""

        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,
            ceva_conjugate,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            point_from_barycentrics,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02281(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2281 = X_2-ISOCONJUGATE OF X_1010 on reference triangle ABC."""
            X_2221 = point_from_barycentrics(model, A, B, C, 0.20882469, 0.32409591, 0.4670794, ID="X_2221", classes=["center"])
            X_1245 = point_from_barycentrics(model, A, B, C, 0.2312025, 0.33122426, 0.43757323, ID="X_1245", classes=["center"])
            X_2281 = ceva_conjugate(model, A, B, C, X_2221, X_1245, ID="X_2281", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            central_line(model, X_6, X_63, 6, 63, incident=True)
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center", "incident"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            central_line(model, X_32, X_48, 32, 48, incident=True)
            X_71 = eval_trilinear_point(model, A, B, C, '(b + c)*cos(A)', ID="X_71", classes=["center", "incident"])
            X_213 = eval_trilinear_point(model, A, B, C, '(b + c)*a**(2)', ID="X_213", classes=["center", "incident"])
            central_line(model, X_71, X_213, 71, 213, incident=True)
            return promote_point_to_top(model, X_2281)


        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_2281 on the given reference triangle."""
            model = create_model('X_2281 = X_2-ISOCONJUGATE OF X_1010')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02281(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-02281.json"))
            write_center_svg(
                model_acute,
                here / "x-02281.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )