X479

X269-CROSS CONJUGATE OF X279

Let A' be the point in which the incircle is tangent to a circle that passes through vertices B and C, and define B' and C' cyclically. The lines AA', BB', CC' concur in X479. For an excircle version, see X5423.
< 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) { 57, 279 }: Central Line L(57, 279) { 7, 354 }: Central Line L(7, 354) { 269, 614 }: Central Line L(269, 614) { 165, 1323 }: Central Line L(165, 1323) { 934, 1617 }: Central Line L(934, 1617) { 1407, 1462 }: Central Line L(1407, 1462) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_269 = ISOGONAL CONJUGATE OF X(200) (0.6369, 0.3847) X_279 = ISOGONAL CONJUGATE OF X(220) (0.6236, 0.3540) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_7 = GERGONNE POINT (0.5903, 0.2769) X_354 = WEILL POINT (0.5823, 0.2533) X_614 = INTERSECTION OF LINES X(1)X(2) AND X(11)X(33) (0.6310, 0.2916) X_165 = CENTROID OF THE EXCENTRAL TRIANGLE (0.4762, 0.0583) X_1323 = FLETCHER POINT (1.0262, 1.2854) X_934 = -CROSS CONJUGATE OF X(57) (0.4269, 0.6071) X_1617 = TCC-PERSPECTOR OF X(57) (0.6629, 0.4014) X_1407 = -BETH CONJUGATE OF X(57) (0.6456, 0.4125) X_1462 = -BETH CONJUGATE OF X(673) (1.0265, -0.1555) X_479 = -CROSS CONJUGATE OF X(279) (0.6392, 0.4221) A B C X269 X279 X57 X7 X354 X614 X165 X1323 X934 X1617 X1407 X1462 X479 (a, b, c) = (5, 6, 7) | AB = 1

X479 (X269-CROSS CONJUGATE OF X279) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_479 = X_269-CROSS CONJUGATE OF X_279."""

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


        def construct_x_00479(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_479 = X_269-CROSS CONJUGATE OF X_279 on reference triangle ABC."""
            X_479 = eval_trilinear_point(model, A, B, C, '(tan(A/2)*sec(A/2))**(2)', ID="X_479", classes=["selected", "target"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_279 = eval_trilinear_point(model, A, B, C, 'csc(A)*(tan(A/2))**(2)', ID="X_279", classes=["center", "incident"])
            central_line(model, X_57, X_279, 57, 279, incident=True)
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_354 = eval_trilinear_point(model, A, B, C, '(b - c)**(2) - a*b - a*c', ID="X_354", classes=["center", "incident"])
            central_line(model, X_7, X_354, 7, 354, incident=True)
            X_269 = eval_trilinear_point(model, A, B, C, '(tan(A/2))**(2)', ID="X_269", classes=["center", "incident"])
            X_614 = eval_trilinear_point(model, A, B, C, 'a**(2) + b**(2) + c**(2) - 2*b*c', ID="X_614", classes=["center", "incident"])
            central_line(model, X_269, X_614, 269, 614, incident=True)
            return promote_point_to_top(model, X_479)


        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_479 on the given reference triangle."""
            model = create_model('X_479 = X_269-CROSS CONJUGATE OF X_279')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00479(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-00479.json"))
            write_center_svg(
                model_acute,
                here / "x-00479.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )