X3286

INTERSECTION OF LINES X3X_6 AND X7X_21

Let L denote the line through X37 perpendicular to the Euler line. Coefficients for a trilinear equation for L are the trilinears for X3286.
< 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) circumcircle: Circumcircle of △ABC { 3, 3110 }: Brocard Axis { 3, 6 }: Brocard Axis { 7, 21 }: Central Line L(7, 21) { 55, 81 }: Central Line L(55, 81) { 36, 238 }: Central Line L(36, 238) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_3110 = ORTHOGONAL PROJECTION OF X(1) ON BROCARD AXIS (0.5773, 0.2297) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_7 = GERGONNE POINT (0.5903, 0.2769) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_3286 = INTERSECTION OF LINES X(3)X(6) AND X(7)X(21) (1.4038, 1.5947) A B C X3 X3110 X6 X7 X21 X55 X81 X36 X238 X3286 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3286 = INTERSECTION OF LINES X_3X_6 AND X_7X_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,
            cevapoint,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            gergonne_point_of,
            point_from_barycentrics,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03286(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3286 = INTERSECTION OF LINES X_3X_6 AND X_7X_21 on reference triangle ABC."""
            X_672 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2) - a*(b + c))', ID="X_672", classes=["center"])
            X_2223 = point_from_barycentrics(model, A, B, C, -0.97809077, -0.16901408, 2.1471049, ID="X_2223", classes=["center"])
            X_3286 = cevapoint(model, A, B, C, X_672, X_2223, ID="X_3286", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_3, X_6, 3, 6, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", 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_7, X_21, 7, 21, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_81 = eval_trilinear_point(model, A, B, C, '1/(b + c)', ID="X_81", classes=["center", "incident"])
            central_line(model, X_55, X_81, 55, 81, incident=True)
            return promote_point_to_top(model, X_3286)


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