Fixed getDirection() in CompositeSpline