ball to vector