X2301

X2-ISOCONJUGATE OF X1242

< 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, 19 }: Central Line L(1, 19) { 40, 41 }: Central Line L(40, 41) { 55, 101 }: Central Line L(55, 101) { 218, 573 }: Central Line L(218, 573) { 102, 949 }: Central Line L(102, 949) { 581, 607 }: Central Line L(581, 607) 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_19 = CLAWSON POINT (0.6246, 0.4244) X_40 = BEVAN POINT (0.4286, -0.0292) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_218 = -CEVA CONJUGATE OF X(55) (0.6557, 0.3333) X_573 = ORTHOHARMONIC OF X(58) (0.4583, 0.2009) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_949 = ISOGONAL CONJUGATE OF X(948) (0.5571, 0.1869) X_581 = ORTHOHARMONIC OF X(284) (0.5657, 0.2106) X_607 = ISOGONAL CONJUGATE OF X(348) (0.6187, 0.3865) X_2301 = -ISOCONJUGATE OF X(1242) (0.5576, 0.1836) A B C X1 X19 X40 X41 X55 X101 X218 X573 X102 X949 X581 X607 X2301 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2301 = X_2-ISOCONJUGATE OF X_1242."""

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


        def construct_x_02301(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2301 = X_2-ISOCONJUGATE OF X_1242 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center"])
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center"])
            central_line(model, X_1, X_19, 1, 19)
            central_line(model, X_40, X_41, 40, 41)
            X_2301 = intersect_lines(model, X_1, X_19, X_40, X_41, ID="X_2301", classes=["selected", "target"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            central_line(model, X_55, X_101, 55, 101, incident=True)
            return promote_point_to_top(model, X_2301)


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