X971

INTERSECTION OF LINES X3X_9 AND X4X_7

As the isogonal conjugate of a point on the circumcircle, X971 lies on the line at infinity.
< 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, 7 }: Central Line L(4, 7) { 3, 9 }: Central Line L(3, 9) { 20, 72 }: Central Line L(20, 72) { 5, 142 }: Central Line L(5, 142) { 33, 222 }: Central Line L(33, 222) { 165, 210 }: Central Line L(165, 210) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_7 = GERGONNE POINT (0.5903, 0.2769) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_9 = MITTENPUNKT (0.5110, 0.1615) X_20 = DE LONGCHAMPS POINT (0.3878, -0.1916) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_142 = COMPLEMENT OF X(9) (0.5506, 0.2192) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_222 = -CEVA CONJUGATE OF X(56) (0.5653, 0.1568) X_165 = CENTROID OF THE EXCENTRAL TRIANGLE (0.4762, 0.0583) X_210 = -CEVA CONJUGATE OF X(37) (0.4925, 0.1466) X_971 = INTERSECTION OF LINES X(3)X(9) AND X(4)X(7) (0.6441, 0.7770) A B C X4 X7 X3 X9 X20 X72 X5 X142 X33 X222 X165 X210 X971 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_971 = INTERSECTION OF LINES X_3X_9 AND X_4X_7."""

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


        def construct_x_00971(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_971 = INTERSECTION OF LINES X_3X_9 AND X_4X_7 on reference triangle ABC."""
            X_971 = eval_trilinear_point(model, A, B, C, 'a**(4)*(b + c) - 2*a**(3)*(b**(2) + c**(2) - b*c) + 2*a*(b - c)**(2)*(b**(2) + c**(2) + b*c) - (b - c)**(2)*(b + c)**(3)', ID="X_971", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            central_line(model, X_4, X_7, 4, 7, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            central_line(model, X_3, X_9, 3, 9, incident=True)
            X_20 = eval_trilinear_point(model, A, B, C, 'cos(A) - cos(B)*cos(C)', ID="X_20", classes=["center", "incident"])
            X_72 = eval_trilinear_point(model, A, B, C, '(b + c)*cot(A)', ID="X_72", classes=["center", "incident"])
            central_line(model, X_20, X_72, 20, 72, incident=True)
            return promote_point_to_top(model, X_971)


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