X2306

X2-ISOCONJUGATE OF X1250

< 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, 15 }: Central Line L(1, 15) { 13, 79 }: Central Line L(13, 79) { 2, 1081 }: Central Line L(2, 1081) { 6, 1406 }: Central Line L(6, 1406) { 65, 2153 }: Central Line L(65, 2153) { 1082, 1255 }: Central Line L(1082, 1255) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1081 = POINT ALPHECCA (0.6056, 0.3226) X_1251 = ISOGONAL CONJUGATE OF X(1082) (0.5908, 0.2784) X_1 = INCENTER (0.5714, 0.2333) X_15 = 1st ISODYNAMIC POINT (0.5519, 0.1878) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_2 = CENTROID (0.5374, 0.2000) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1406 = -BETH CONJUGATE OF X(46) (0.6653, 0.5088) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_2153 = -ISOCONJUGATE OF X(15) (0.6114, 0.3163) X_1082 = POINT ALPHERATZ (0.5483, 0.1908) X_1255 = ISOGONAL CONJUGATE OF X(1100) (0.5639, 0.2247) X_2306 = -ISOCONJUGATE OF X(1250) (0.6238, 0.3555) A B C X1081 X1251 X1 X15 X13 X79 X2 X6 X1406 X65 X2153 X1082 X1255 X2306 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2306 = X_2-ISOCONJUGATE OF X_1250."""

        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,
            centroid_of,
            ceva_conjugate,
            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_02306(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2306 = X_2-ISOCONJUGATE OF X_1250 on reference triangle ABC."""
            X_1081 = eval_trilinear_point(model, A, B, C, 'sec(A/2)*csc(A/2 -  pi  /3)', ID="X_1081", classes=["center"])
            X_1251 = eval_trilinear_point(model, A, B, C, '(sin(A)*csc(A/2)*sec(A/2 +  pi  /6))', ID="X_1251", classes=["center"])
            X_2306 = ceva_conjugate(model, A, B, C, X_1081, X_1251, ID="X_2306", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_15 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /3)', ID="X_15", classes=["center", "incident"])
            central_line(model, X_1, X_15, 1, 15, incident=True)
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            X_79 = eval_trilinear_point(model, A, B, C, '1/(1 + 2*cos(A))', ID="X_79", classes=["center", "incident"])
            central_line(model, X_13, X_79, 13, 79, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            central_line(model, X_2, X_1081, 2, 1081, incident=True)
            return promote_point_to_top(model, X_2306)


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