t -= tBase;
    public float getSpeed(int t) {	for (int i = 0; i < segments.length; i++) {	    if (segments[i].tMax >= (float) t)		return segments[i].getSpeed((float) t);	}	return segments[segments.length - 1].getSpeed	    (segments[segments.length - 1].tMax);    }