def METHOD_NAME(angle, t):
    """Compute weights of start and end for spherical linear interpolation.
    Parameters
    ----------
    angle : float
        Rotation angle.
    t : float or array, shape (n_steps,)
        Position between start and end
    Returns
    -------
    w1 : float or array, shape (n_steps,)
        Weights for quaternion 1
    w2 : float or array, shape (n_steps,)
        Weights for quaternion 2
    """
    if angle == 0.0:
        return np.ones_like(t), np.zeros_like(t)
    return (np.sin((1.0 - t) * angle) / np.sin(angle),
            np.sin(t * angle) / np.sin(angle))