X1364

BRISSE TRANSFORM OF X108

X1364 = reflection of X1361 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) { 1361, 1 }: Central Line L(1361, 1) { 12, 117 }: Central Line L(12, 117) { 11, 124 }: Central Line L(11, 124) { 55, 103 }: Central Line L(55, 103) { 56, 102 }: Central Line L(56, 102) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1361 = BRISSE TRANSFORM OF X(104) (0.5091, 0.4581) X_1 = INCENTER (0.5714, 0.2333) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_117 = MIDPOINT OF X(4) AND X(109) (0.4879, 0.4948) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_124 = -OF-MEDIAL-TRIANGLE (0.6243, 0.0030) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_1364 = BRISSE TRANSFORM OF X(108) (0.5367, 0.6071) A B C X1361 X1 X12 X117 X11 X124 X55 X103 X56 X102 X1364 (a, b, c) = (5, 6, 7) | AB = 1

X1364 (BRISSE TRANSFORM OF X108) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1364 = BRISSE TRANSFORM OF X_108."""

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


        def construct_x_01364(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1364 = BRISSE TRANSFORM OF X_108 on reference triangle ABC."""
            X_1361 = point_from_barycentrics(model, A, B, C, 0.19480519, 0.041558442, 0.76363636, ID="X_1361", classes=["center"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_1364 = reflection_in_point(model, X_1361, X_1, ID="X_1364", classes=["selected", "target"], guide=False)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            X_117 = point_from_barycentrics(model, A, B, C, 0.19223485, -0.017045455, 0.82481061, ID="X_117", classes=["center", "incident"])
            central_line(model, X_12, X_117, 12, 117, incident=True)
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_124 = eval_trilinear_point(model, A, B, C, '(b*c*(b + c - a)*(b - c)**(2)*((b + c)*(b**(2) + c**(2) - a**(2) - b*c) + a*b*c))', ID="X_124", classes=["center", "incident"])
            central_line(model, X_11, X_124, 11, 124, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_103 = eval_trilinear_point(model, A, B, C, 'a/((a - b)*cot(C) + (a - c)*cot(B))', ID="X_103", classes=["center", "incident"])
            central_line(model, X_55, X_103, 55, 103, incident=True)
            return promote_point_to_top(model, X_1364)


        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_1364 on the given reference triangle."""
            model = create_model('X_1364 = BRISSE TRANSFORM OF X_108')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01364(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-01364.json"))
            write_center_svg(
                model_acute,
                here / "x-01364.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )