mri.v3ds
Class RotationTrack3ds
java.lang.Object
|
+--mri.v3ds.Track3ds
|
+--mri.v3ds.RotationTrack3ds
- public class RotationTrack3ds
- extends Track3ds
Rotation track.
The rotation track control rotation of a mesh around its pivot point.
3D Studio stores the rotation tracks as angular displacements. The first
key in the track gives the absolute rotation. The following keys are
relative rotations to the previous key. To be useful, the angular
displacements must be converted into quaternions. Using quaternion
multiplication, the absolute rotation at each key can be calculated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotationTrack3ds
public RotationTrack3ds()
keys
public int keys()
- Get number of keys.
- Returns:
- number of keys
key
public RotationKey3ds key(int i)
- Access a specific key.
- Parameters:
i
- index into key array [0 ... keys()-1]- Returns:
- the specified key
track
public RotationKey3ds[] track()
- Access the track (the whole array of keys).
- Returns:
- array of keys