public Iterator<Vector3f> iterator() {
        return spline.getControlPoints().iterator();
    }
returns an iterator on the waypoints collection
@return an iterator
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java