X2297

X2-ISOCONJUGATE OF X1191

< 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) { 9, 56 }: Central Line L(9, 56) { 6, 200 }: Central Line L(6, 200) { 2, 269 }: Central Line L(2, 269) { 34, 281 }: Central Line L(34, 281) { 1, 346 }: Central Line L(1, 346) { 10, 937 }: Central Line L(10, 937) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2999 = DANNEELS-BEVAN HOMOTHETIC CENTER (0.5973, 0.2586) X_9 = MITTENPUNKT (0.5110, 0.1615) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_200 = -CEVA CONJUGATE OF X(9) (0.4392, 0.1037) X_2 = CENTROID (0.5374, 0.2000) X_269 = ISOGONAL CONJUGATE OF X(200) (0.6369, 0.3847) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_281 = -CROSS CONJUGATE OF X(9) (0.5796, 0.3202) X_1 = INCENTER (0.5714, 0.2333) X_346 = ISOTOMIC CONJUGATE OF X(279) (0.3948, 0.0827) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_937 = ISOGONAL CONJUGATE OF X(936) (0.6143, 0.2920) X_2297 = -ISOCONJUGATE OF X(1191) (0.5417, 0.2080) A B C X2999 X9 X56 X6 X200 X2 X269 X34 X281 X1 X346 X10 X937 X2297 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2297 = X_2-ISOCONJUGATE OF X_1191."""

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


        def construct_x_02297(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2297 = X_2-ISOCONJUGATE OF X_1191 on reference triangle ABC."""
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center"])
            X_200 = eval_trilinear_point(model, A, B, C, '(cot(A/2))**(2)', ID="X_200", classes=["center"])
            central_line(model, X_9, X_56, 9, 56)
            central_line(model, X_6, X_200, 6, 200)
            X_2297 = intersect_lines(model, X_9, X_56, X_6, X_200, ID="X_2297", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_269 = eval_trilinear_point(model, A, B, C, '(tan(A/2))**(2)', ID="X_269", classes=["center", "incident"])
            central_line(model, X_2, X_269, 2, 269, incident=True)
            return promote_point_to_top(model, X_2297)


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