Returns a quantity of sample points along this curve and the points themselves in the specified arrays.