private List<Vector3> controlPoints; // List of control points for the spline private ushort[] indices; private List<Vector3> interpolatedPoints; // List of interpolated points located on the spline
how should I translate those points should I want the spline to move?
Should I move all the points once each time the spline is moved:
public void Translate(Vector3 movementVector) { for (int i = 0; i < interpolatedPoints.Count; ++i) { interpolatedPoints += movementVector; if (i < controlPoints.Count) { controlPoints += movementVector; } } }
Or should I use a transformation matrix?
Which one would you be inclined to use, and why?