X2345

X2-ISOCONJUGATE OF X1472

< 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) { 4, 9 }: Orthocenter–Spieker Line { 6, 8 }: Central Line L(6, 8) { 2, 37 }: Central Line L(2, 37) { 7, 141 }: Central Line L(7, 141) { 44, 391 }: Central Line L(44, 391) { 193, 319 }: Central Line L(193, 319) 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_4 = ORTHOCENTER (0.6122, 0.3958) X_9 = MITTENPUNKT (0.5110, 0.1615) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_8 = NAGEL POINT (0.4694, 0.1333) X_2 = CENTROID (0.5374, 0.2000) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_7 = GERGONNE POINT (0.5903, 0.2769) X_141 = COMPLEMENT OF SYMMEDIAN POINT (0.5061, 0.1663) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_391 = INTERSECTION OF LINES X(2,6) AND X(8,9) (0.4857, 0.1443) X_193 = -CEVA CONJUGATE OF X(2) (0.7878, 0.4690) X_319 = ISOTOMIC CONJUGATE OF X(79) (0.4549, 0.1161) X_2345 = -ISOCONJUGATE OF X(1472) (0.5222, 0.1875) A B C X2221 X4 X9 X6 X8 X2 X37 X7 X141 X44 X391 X193 X319 X2345 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2345 = X_2-ISOCONJUGATE OF X_1472."""

        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,
            isogonal_conjugate,
            mittenpunkt_of,
            nagel_point_of,
            orthocenter_of,
            point_from_barycentrics,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02345(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2345 = X_2-ISOCONJUGATE OF X_1472 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_2345 = isogonal_conjugate(model, A, B, C, X_2221, ID="X_2345", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            central_line(model, X_4, X_9, 4, 9, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            central_line(model, X_6, X_8, 6, 8, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            central_line(model, X_2, X_37, 2, 37, incident=True)
            return promote_point_to_top(model, X_2345)


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