Forgot to update bezier curve code to handle vectors.