X2553

EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X4,2R))

The circle (X4,2R) is identified at X2474.
< 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) { 2, 3 }: Euler Line { 388, 2463 }: Central Line L(388, 2463) { 497, 2464 }: Central Line L(497, 2464) { 1587, 2465 }: Central Line L(1587, 2465) { 1588, 2466 }: Central Line L(1588, 2466) { 2469, 2542 }: Central Line L(2469, 2542) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_4 = ORTHOCENTER (0.6122, 0.3958) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_2463 = INSIMILICENTER(ORTHOCENTROIDAL CIRCLE, INCIRCLE) (0.5738, 0.2778) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_2464 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, INCIRCLE) (0.5776, 0.3505) X_1587 = POINT CASTOR I (0.6026, 0.2943) X_2465 = INSIMILICENTER(ORTHOCENTROIDAL CIRCLE, 2nd LEMOINE CIRCLE) (0.5818, 0.2893) X_1588 = POINT CASTOR II (0.5955, 0.2203) X_2466 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, 2nd LEMOINE CIRCLE) (0.5591, 0.3170) X_2469 = INSIMILICENTER(ORTHOCENTROIDALCIRCLE, BROCARD CIRCLE) (0.5619, 0.2389) X_2542 = INSIMILICENTER(BROCARD CIRCLE, (X(4),2R)) (0.5554, 0.2029) X_2553 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X(4),2R)) (0.5705, 0.2867) A B C X2 X3 X4 X388 X2463 X497 X2464 X1587 X2465 X1588 X2466 X2469 X2542 X2553 (a, b, c) = (5, 6, 7) | AB = 1

X2553 (EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X4,2R))) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2553 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X_4,2R))."""

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


        def construct_x_02553(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2553 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X_4,2R)) on reference triangle ABC."""
            X_2553 = eval_trilinear_point(model, A, B, C, '(cos(A) + (4 - J)*cos(B)*cos(C))', ID="X_2553", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_388 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) + (b + c)**(2))/(b + c - a)', ID="X_388", classes=["center", "incident"])
            X_2463 = eval_trilinear_point(model, A, B, C, '(J + cos(A) + 4*cos(B)*cos(C))', ID="X_2463", classes=["center", "incident"])
            central_line(model, X_388, X_2463, 388, 2463, incident=True)
            X_497 = eval_trilinear_point(model, A, B, C, '1 - cos(B)*cos(C)', ID="X_497", classes=["center", "incident"])
            X_2464 = eval_trilinear_point(model, A, B, C, '(J - cos(A) - 4*cos(B)*cos(C))', ID="X_2464", classes=["center", "incident"])
            central_line(model, X_497, X_2464, 497, 2464, incident=True)
            return promote_point_to_top(model, X_2553)


        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_2553 on the given reference triangle."""
            model = create_model('X_2553 = EXSIMILICENTER(ORTHOCENTROIDAL CIRCLE, (X_4,2R))')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02553(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-02553.json"))
            write_center_svg(
                model_acute,
                here / "x-02553.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )