X2328

X2-ISOCONJUGATE OF X1427

< 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, 21 }: Central Line L(1, 21) { 10, 29 }: Central Line L(10, 29) { 9, 33 }: Central Line L(9, 33) { 3, 64 }: Central Line L(3, 64) { 28, 40 }: Central Line L(28, 40) { 103, 110 }: Central Line L(103, 110) 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_21 = SCHIFFLER POINT (0.5287, 0.1771) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_9 = MITTENPUNKT (0.5110, 0.1615) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_64 = ISOGONAL CONJUGATE OF X(20) (0.5579, 1.5943) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_40 = BEVAN POINT (0.4286, -0.0292) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_2328 = -ISOCONJUGATE OF X(1427) (0.5015, 0.1414) A B C X1 X21 X10 X29 X9 X33 X3 X64 X28 X40 X103 X110 X2328 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2328 = X_2-ISOCONJUGATE OF X_1427."""

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


        def construct_x_02328(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2328 = X_2-ISOCONJUGATE OF X_1427 on reference triangle ABC."""
            X_2328 = eval_trilinear_point(model, A, B, C, '(1 + cos(A))/(cos(B) + cos(C))', ID="X_2328", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_1, X_21, 1, 21, incident=True)
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            central_line(model, X_10, X_29, 10, 29, incident=True)
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center", "incident"])
            central_line(model, X_9, X_33, 9, 33, incident=True)
            return promote_point_to_top(model, X_2328)


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