X3495

INTERSECTION OF LINES X32X_983 AND X39X_256

< 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) { 39, 256 }: Central Line L(39, 256) { 32, 983 }: Central Line L(32, 983) { 1, 3499 }: Central Line L(1, 3499) { 384, 3503 }: Central Line L(384, 3503) { 3498, 3501 }: Central Line L(3498, 3501) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3503 = ISOGONAL CONJUGATE OF X(3495) (0.6309, 0.3425) X_39 = BROCARD MIDPOINT (0.5778, 0.2305) X_256 = 1st SHARYGIN POINT (0.5601, 0.2146) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_983 = ISOGONAL CONJUGATE OF X(982) (0.5890, 0.2731) X_1 = INCENTER (0.5714, 0.2333) X_3499 = INTERSECTION OF LINES X(3)X(695) AND X(6)X(76) (0.6625, 0.3232) X_384 = THE CONWAY POINT: EULER LINE INTERCEPT OF LINE X(32)X(76) (0.5532, 0.2412) X_3498 = INTERSECTION OF LINES X(3)X(83) AND X(194)X(263) (0.6232, 0.3554) X_3501 = INTERSECTION OF LINES X(1)X(39) AND X(4)X(9) (0.5467, 0.2440) X_3495 = INTERSECTION OF LINES X(32)X(983) AND X(39)X(256) (0.4713, 0.1344) A B C X3503 X39 X256 X32 X983 X1 X3499 X384 X3498 X3501 X3495 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3495 = INTERSECTION OF LINES X_32X_983 AND X_39X_256."""

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


        def construct_x_03495(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3495 = INTERSECTION OF LINES X_32X_983 AND X_39X_256 on reference triangle ABC."""
            X_3495 = eval_trilinear_point(model, A, B, C, '((b + c - a)/(b**(2)*c**(2) + c**(2)*a**(2) + a**(2)*b**(2) - a*b*c*(b + c - a)))', ID="X_3495", classes=["selected", "target"])
            X_39 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2))', ID="X_39", classes=["center", "incident"])
            X_256 = eval_trilinear_point(model, A, B, C, '1/(a**(2) + b*c)', ID="X_256", classes=["center", "incident"])
            central_line(model, X_39, X_256, 39, 256, incident=True)
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center", "incident"])
            X_983 = eval_trilinear_point(model, A, B, C, '(1/(b**(2) - b*c + c**(2)))', ID="X_983", classes=["center", "incident"])
            central_line(model, X_32, X_983, 32, 983, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_3499 = eval_trilinear_point(model, A, B, C, '(a*(a**(4)*(b**(4) + b**(2)*c**(2) + c**(4)) + a**(2)*b**(2)*c**(2)*(b**(2) + c**(2)) - b**(4)*c**(4)))', ID="X_3499", classes=["center", "incident"])
            central_line(model, X_1, X_3499, 1, 3499, incident=True)
            return promote_point_to_top(model, X_3495)


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