X3486

INTERSECTION OF LINES X1X_4 AND X8X_21

X3486 = extangents-to-intangents similarity image of X8
< 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) { 1, 4 }: Incenter–Orthocenter Line { 8, 21 }: Central Line L(8, 21) { 20, 65 }: Central Line L(20, 65) { 144, 145 }: Central Line L(144, 145) { 46, 376 }: Central Line L(46, 376) { 281, 284 }: Central Line L(281, 284) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_4 = ORTHOCENTER (0.6122, 0.3958) X_8 = NAGEL POINT (0.4694, 0.1333) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_144 = ANTICOMPLEMENT OF X(7) (0.4317, 0.0461) X_145 = ANTICOMPLEMENT OF NAGEL POINT (0.6735, 0.3333) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_376 = CENTROID OF THE ANTIPEDAL TRIANGLE OF X(2) (0.4626, 0.0042) X_281 = -CROSS CONJUGATE OF X(9) (0.5796, 0.3202) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_3486 = INTERSECTION OF LINES X(1)X(4) AND X(8)X(21) (0.5638, 0.2031) A B C X1 X4 X8 X21 X20 X65 X144 X145 X46 X376 X281 X284 X3486 (a, b, c) = (5, 6, 7) | AB = 1

X3486 (INTERSECTION OF LINES X1X_4 AND X8X_21) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3486 = INTERSECTION OF LINES X_1X_4 AND X_8X_21."""

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


        def construct_x_03486(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3486 = INTERSECTION OF LINES X_1X_4 AND X_8X_21 on reference triangle ABC."""
            X_3486 = eval_trilinear_point(model, A, B, C, '(cos(A) + cos(B) + cos(C) - cos(B)*cos(C))', ID="X_3486", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            central_line(model, X_1, X_4, 1, 4, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_8, X_21, 8, 21, incident=True)
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_20, X_65, 20, 65, incident=True)
            return promote_point_to_top(model, X_3486)


        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_3486 on the given reference triangle."""
            model = create_model('X_3486 = INTERSECTION OF LINES X_1X_4 AND X_8X_21')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03486(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-03486.json"))
            write_center_svg(
                model_acute,
                here / "x-03486.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )