X3496

INTERSECTION OF LINES X1X_32 AND X4X_9

X3496 = crossdifference of every pair of points on the line X1459X1491
< 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, 9 }: Orthocenter–Spieker Line { 1, 32 }: Central Line L(1, 32) { 63, 194 }: Central Line L(63, 194) { 57, 348 }: Central Line L(57, 348) { 257, 384 }: Central Line L(257, 384) { 39, 893 }: Central Line L(39, 893) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3497 = ISOGONAL CONJUGATE OF X(3496) (0.6174, 0.3711) X_4 = ORTHOCENTER (0.6122, 0.3958) X_9 = MITTENPUNKT (0.5110, 0.1615) X_1 = INCENTER (0.5714, 0.2333) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_194 = -CEVA CONJUGATE OF X(2) (0.6989, 0.3222) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_348 = ISOTOMIC CONJUGATE OF X(281) (0.4854, 0.1069) X_257 = ISOGONAL CONJUGATE OF X(172) (0.5240, 0.1822) X_384 = THE CONWAY POINT: EULER LINE INTERCEPT OF LINE X(32)X(76) (0.5532, 0.2412) X_39 = BROCARD MIDPOINT (0.5778, 0.2305) X_893 = -CROSS CONJUGATE OF X(292) (0.5910, 0.2480) X_3496 = INTERSECTION OF LINES X(1)X(32) AND X(4)X(9) (0.4919, 0.1173) A B C X3497 X4 X9 X1 X32 X63 X194 X57 X348 X257 X384 X39 X893 X3496 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3496 = INTERSECTION OF LINES X_1X_32 AND X_4X_9."""

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


        def construct_x_03496(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3496 = INTERSECTION OF LINES X_1X_32 AND X_4X_9 on reference triangle ABC."""
            X_3496 = eval_trilinear_point(model, A, B, C, '(b**(3) + c**(3) - a**(3) + a*b*c)', ID="X_3496", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            central_line(model, X_4, X_9, 4, 9, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center", "incident"])
            central_line(model, X_1, X_32, 1, 32, incident=True)
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            X_194 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2)*b**(2) + a**(2)*c**(2) - b**(2)*c**(2))', ID="X_194", classes=["center", "incident"])
            central_line(model, X_63, X_194, 63, 194, incident=True)
            return promote_point_to_top(model, X_3496)


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