New function with index for rotate source/dest

Index into source/destination array added for static rotate function.
Move z axis rotation field to Animation3D

Small refactoring, move field for z axis rotation to animation base
class.
Support for rotating linear animation on z axis.

First effort to rotate linear animation on z axis.