X969

INTERSECTION OF LINES X10X_69 AND X19X_81

< 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) { 10, 69 }: Central Line L(10, 69) { 19, 81 }: Central Line L(19, 81) { 37, 63 }: Central Line L(37, 63) { 65, 77 }: Central Line L(65, 77) { 7, 225 }: Central Line L(7, 225) { 158, 286 }: Central Line L(158, 286) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_968 = POINT ALDERAMIN (0.5557, 0.2126) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_19 = CLAWSON POINT (0.6246, 0.4244) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_7 = GERGONNE POINT (0.5903, 0.2769) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_158 = -CROSS CONJUGATE OF X(92) (0.6215, 0.5117) X_286 = -CROSS CONJUGATE OF X(27) (0.6033, 0.3810) X_969 = INTERSECTION OF LINES X(10)X(69) AND X(19)X(81) (0.5857, 0.2544) A B C X968 X10 X69 X19 X81 X37 X63 X65 X77 X7 X225 X158 X286 X969 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_969 = INTERSECTION OF LINES X_10X_69 AND X_19X_81."""

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


        def construct_x_00969(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_969 = INTERSECTION OF LINES X_10X_69 AND X_19X_81 on reference triangle ABC."""
            X_968 = eval_trilinear_point(model, A, B, C, 'a**(2) - 2*a*(b + c) - (b + c)**(2)', ID="X_968", classes=["center"])
            X_969 = isogonal_conjugate(model, A, B, C, X_968, ID="X_969", classes=["selected", "target"])
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            central_line(model, X_10, X_69, 10, 69, incident=True)
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", 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_19, X_81, 19, 81, incident=True)
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            central_line(model, X_37, X_63, 37, 63, incident=True)
            return promote_point_to_top(model, X_969)


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