X3303

INTERSECTION OF LINES X1X_3 AND X496X_498

X3303 = homothetic center of tangential triangle and reflection of extangents triangle in X1
< 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 { 1, 3 }: OI Line (Incenter–Circumcenter Line) { 8, 344 }: Central Line L(8, 344) { 12, 497 }: Central Line L(12, 497) { 388, 390 }: Central Line L(388, 390) { 377, 528 }: Central Line L(377, 528) { 496, 498 }: Central Line L(496, 498) 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_1 = INCENTER (0.5714, 0.2333) X_8 = NAGEL POINT (0.4694, 0.1333) X_344 = ISOTOMIC CONJUGATE OF X(277) (0.6218, 0.2693) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_390 = REFLECTION OF GERGONNE POINT IN INCENTER (0.5526, 0.1897) X_377 = EULER LINE INTERCEPT OF LINE X(7)X(8) (0.5473, 0.2258) X_528 = DIRECTION OF VECTOR AX + BX + CX, where X = X(11) (1.0237, -0.1286) X_496 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(495) (0.5843, 0.2201) X_498 = YFF CONCURRENT CONGRUENT CIRCLES POINT (0.5518, 0.2140) X_3303 = INTERSECTION OF LINES X(1)X(3) AND X(496)X(498) (0.5620, 0.2159) A B C X3 X1 X8 X344 X12 X497 X388 X390 X377 X528 X496 X498 X3303 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3303 = INTERSECTION OF LINES X_1X_3 AND X_496X_498."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03303(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3303 = INTERSECTION OF LINES X_1X_3 AND X_496X_498 on reference triangle ABC."""
            X_3303 = eval_trilinear_point(model, A, B, C, '3 + cos(A)', ID="X_3303", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            central_line(model, X_1, X_3, 1, 3, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_344 = eval_trilinear_point(model, A, B, C, '((csc(A/2))**(2))*((cos(B/2))**(4) + (cos(C/2))**(4) - (cos(A/2))**(4))', ID="X_344", classes=["center", "incident"])
            central_line(model, X_8, X_344, 8, 344, incident=True)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            X_497 = eval_trilinear_point(model, A, B, C, '1 - cos(B)*cos(C)', ID="X_497", classes=["center", "incident"])
            central_line(model, X_12, X_497, 12, 497, incident=True)
            return promote_point_to_top(model, X_3303)


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