X1158

CIRCUMCENTER OF EXTOUCH TRIANGLE

X1158 is the circumcenter of extouch triangle.
< A B C >: Reference Triangle △ABC < N_a N_b N_c >: Extouch Triangle △N_a N_b N_c [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) circumcircle_of_extouch: Circumcircle of extouch [ N_a X_1158 ]: Line [ N_a X_1158 ] [ N_b X_1158 ]: Line [ N_b X_1158 ] [ N_c X_1158 ]: Line [ N_c X_1158 ] { 8, 20 }: Central Line L(8, 20) { 4, 46 }: Central Line L(4, 46) { 1, 104 }: Central Line L(1, 104) { 117, 208 }: Central Line L(117, 208) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) N_a = Excircle Touchpoint N_a on BC (0.7673, 0.3599) N_b = Excircle Touchpoint N_b on CA (0.4082, 0.3999) N_c = Excircle Touchpoint N_c on AB (0.5714, 0.0000) X_8 = NAGEL POINT (0.4694, 0.1333) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_4 = ORTHOCENTER (0.6122, 0.3958) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_1 = INCENTER (0.5714, 0.2333) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_117 = MIDPOINT OF X(4) AND X(109) (0.4879, 0.4948) X_208 = -CEVA CONJUGATE OF X(34) (0.6242, -0.2728) X_1158 = CIRCUMCENTER OF EXTOUCH TRIANGLE (0.5179, 0.3262) A B C Na Nb Nc X8 X20 X4 X46 X1 X104 X117 X208 X1158 (a, b, c) = (5, 6, 7) | AB = 1

X1158 (CIRCUMCENTER OF EXTOUCH TRIANGLE) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1158 = CIRCUMCENTER OF EXTOUCH TRIANGLE."""

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


        def construct_x_01158(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1158 = CIRCUMCENTER OF EXTOUCH TRIANGLE on reference triangle ABC."""
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center"])
            X_84 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A) - 1)', ID="X_84", classes=["center"])
            X_1158 = midpoint(model, X_40, X_84, ID="X_1158", classes=["selected", "target"], guide=False)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center", "incident"])
            central_line(model, X_8, X_20, 8, 20, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center", "incident"])
            central_line(model, X_4, X_46, 4, 46, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_104 = eval_trilinear_point(model, A, B, C, '1/(-1 + cos(B) + cos(C))', ID="X_104", classes=["center", "incident"])
            central_line(model, X_1, X_104, 1, 104, incident=True)
            return promote_point_to_top(model, X_1158)


        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_1158 on the given reference triangle."""
            model = create_model('X_1158 = CIRCUMCENTER OF EXTOUCH TRIANGLE')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01158(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-01158.json"))
            write_center_svg(
                model_acute,
                here / "x-01158.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )