def METHOD_NAME(self, u, v, is_array):
    corner1, corner2, corner3, corner4 = self.corner1, self.corner2, self.corner3, self.corner4
    if is_array:
        u = u[np.newaxis].T
        v = v[np.newaxis].T
    b = (corner1 * (1 - u) * (1 - v) + corner2 * u * (1 - v) + corner3 * (1 - u) * v + corner4 * u * v)
    return b