X136

INTERSECTION OF LINE X4X_110 AND X25X_132

X136 =X109-of-orthic triangle if ABC is acute
< A B C >: Reference Triangle △ABC < H_a H_b H_c >: Orthic Triangle △H_a H_b H_c [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) [ H_a X_136 ]: Line [ H_a X_136 ] [ H_b X_136 ]: Line [ H_b X_136 ] [ H_c X_136 ]: Line [ H_c X_136 ] { 4, 110 }: Central Line L(4, 110) { 5, 131 }: Central Line L(5, 131) { 25, 132 }: Central Line L(25, 132) { 68, 254 }: Central Line L(68, 254) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) H_a = Altitude Foot H_a on BC (0.7053, 0.4559) H_b = Altitude Foot H_b on CA (0.5102, 0.4999) H_c = Altitude Foot H_c on AB (0.6122, 0.0000) X_4 = ORTHOCENTER (0.6122, 0.3958) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_131 = INTERSECTION OF LINES X(3)X(125) AND X(4)X(135) (0.3098, 0.1823) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_132 = ∩X(4)X(32) (0.5642, 0.5039) X_68 = PRASOLOV POINT (-0.0535, -0.0055) X_254 = -CROSS CONJUGATE OF X(4) (1.4506, 0.5587) X_136 = INTERSECTION OF LINE X(4)X(110) AND X(25)X(132) (0.8024, 0.3155) A B C Ha Hb Hc X4 X110 X5 X131 X25 X132 X68 X254 X136 (a, b, c) = (5, 6, 7) | AB = 1

X136 (INTERSECTION OF LINE X4X_110 AND X25X_132) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_136 = INTERSECTION OF LINE X_4X_110 AND X_25X_132."""

        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,
            nine_point_center_of,
            orthocenter_of,
            point_from_barycentrics,
            promote_point_to_top,
            reflection_in_point,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00136(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_136 = INTERSECTION OF LINE X_4X_110 AND X_25X_132 on reference triangle ABC."""
            X_131 = point_from_barycentrics(model, A, B, C, 0.57236082, 0.12379803, 0.30384114, ID="X_131", classes=["center"])
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center"])
            X_136 = reflection_in_point(model, X_131, X_5, ID="X_136", classes=["selected", "target"], guide=False)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            central_line(model, X_4, X_110, 4, 110, incident=True)
            central_line(model, X_5, X_131, 5, 131, incident=True)
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_132 = point_from_barycentrics(model, A, B, C, 0.11002416, 0.049913231, 0.84006261, ID="X_132", classes=["center", "incident"])
            central_line(model, X_25, X_132, 25, 132, incident=True)
            return promote_point_to_top(model, X_136)


        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_136 on the given reference triangle."""
            model = create_model('X_136 = INTERSECTION OF LINE X_4X_110 AND X_25X_132')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00136(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-00136.json"))
            write_center_svg(
                model_acute,
                here / "x-00136.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )