Gets sample points along this curve and their parameter values in the specified arrays.
If paramInterval is null, the current curve interval will be used.