X1013

INTERCEPT OF EULER LINE AND LINE X7X_108

< 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 { 33, 63 }: Central Line L(33, 63) { 7, 108 }: Central Line L(7, 108) { 55, 92 }: Central Line L(55, 92) { 6, 162 }: Central Line L(6, 162) { 100, 281 }: Central Line L(100, 281) 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_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_7 = GERGONNE POINT (0.5903, 0.2769) X_108 = Ψ(CIRCUMCENTER, INCENTER) (0.5320, 0.6114) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_92 = CEVAPOINT OF INCENTER AND CLAWSON POINT (0.5949, 0.3639) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_162 = CEVAPOINT OF X(108) AND X(109) (0.4897, 0.6018) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_281 = -CROSS CONJUGATE OF X(9) (0.5796, 0.3202) X_1013 = INTERCEPT OF EULER LINE AND LINE X(7)X(108) (0.5829, 0.3190) A B C X2 X3 X4 X33 X63 X7 X108 X55 X92 X6 X162 X100 X281 X1013 (a, b, c) = (5, 6, 7) | AB = 1

X1013 (INTERCEPT OF EULER LINE AND LINE X7X_108) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1013 = INTERCEPT OF EULER LINE AND LINE X_7X_108."""

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


        def construct_x_01013(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1013 = INTERCEPT OF EULER LINE AND LINE X_7X_108 on reference triangle ABC."""
            X_1013 = eval_trilinear_point(model, A, B, C, '((cos(A) + cos(B) + cos(C))*cos(A) + (sec(A) + sec(B) + sec(C))*cos(B)*cos(C))', ID="X_1013", 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_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center", "incident"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            central_line(model, X_33, X_63, 33, 63, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_108 = eval_trilinear_point(model, A, B, C, 'a/(sec(B) - sec(C))', ID="X_108", classes=["center", "incident"])
            central_line(model, X_7, X_108, 7, 108, incident=True)
            return promote_point_to_top(model, X_1013)


        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_1013 on the given reference triangle."""
            model = create_model('X_1013 = INTERCEPT OF EULER LINE AND LINE X_7X_108')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01013(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-01013.json"))
            write_center_svg(
                model_acute,
                here / "x-01013.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )