       ----------
        x, y : array-like of dim 1 (shape (nx,))
                  Coordinates of the points whose points barycentric
                  coordinates are requested
        tris_pts : array like of dim 3 (shape: (nx,3,2))
                    Coordinates of the containing triangles apexes.

        Returns
        -------
        alpha : array of dim 2 (shape (nx,3))
                 Barycentric coordinates of the points inside the containing
                 triangles.
        r"