X3319

INCIRCLE TRANSFORM T(X654)

X3319 = reflection of X3326 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) { 3326, 1 }: Central Line L(3326, 1) { 11, 515 }: Central Line L(11, 515) { 522, 1317 }: Central Line L(522, 1317) { 513, 1361 }: Central Line L(513, 1361) { 517, 1364 }: Central Line L(517, 1364) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3326 = INCIRCLE TRANSFORM T(X(909)) (0.3488, 0.1636) X_1 = INCENTER (0.5714, 0.2333) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_515 = ISOGONAL CONJUGATE OF X(102) (0.6804, 0.7691) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_1317 = REFLECTION OF X(11) IN X(1) (0.4082, 0.3999) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_1361 = BRISSE TRANSFORM OF X(104) (0.5091, 0.4581) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_1364 = BRISSE TRANSFORM OF X(108) (0.6338, 0.0085) X_3319 = INCIRCLE TRANSFORM T(X(654)) (0.7941, 0.3030) A B C X3326 X1 X11 X515 X522 X1317 X513 X1361 X517 X1364 X3319 (a, b, c) = (5, 6, 7) | AB = 1

X3319 (INCIRCLE TRANSFORM T(X654)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3319 = INCIRCLE TRANSFORM T(X_654)."""

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


        def construct_x_03319(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3319 = INCIRCLE TRANSFORM T(X_654) on reference triangle ABC."""
            X_3319 = eval_barycentric_point(model, A, B, C, '((2*a**(4) - 2*a**(3)*(b + c) - a**(2)*(b**(2) - 4*b*c + c**(2)) + 2*a*(b + c)*(b - c)**(2) - (b**(2) - c**(2))**(2))**(2)/(b + c - a))', ID="X_3319", classes=["selected", "target"])
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_515 = eval_trilinear_point(model, A, B, C, '(b + c)*sec(A) - b*sec(B) - c*sec(C)', ID="X_515", classes=["center", "incident"])
            central_line(model, X_11, X_515, 11, 515, incident=True)
            X_522 = eval_trilinear_point(model, A, B, C, '(cos(B) - cos(C))*(csc(A))', ID="X_522", classes=["center", "incident"])
            X_1317 = eval_trilinear_point(model, A, B, C, '(b*c*(c + a - b)*(a + b - c)*(b + c - 2*a)**(2))', ID="X_1317", classes=["center", "incident"])
            central_line(model, X_522, X_1317, 522, 1317, incident=True)
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center", "incident"])
            X_1361 = point_from_barycentrics(model, A, B, C, 0.19480519, 0.041558442, 0.76363636, ID="X_1361", classes=["center", "incident"])
            central_line(model, X_513, X_1361, 513, 1361, incident=True)
            return promote_point_to_top(model, X_3319)


        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_3319 on the given reference triangle."""
            model = create_model('X_3319 = INCIRCLE TRANSFORM T(X_654)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03319(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-03319.json"))
            write_center_svg(
                model_acute,
                here / "x-03319.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )