mri.v3ds
v0.1

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.


Fields inherited from class mri.v3ds.Track3ds
LOCK_X, LOCK_Y, LOCK_Z, LOOP, REPEAT, SINGLE, UNLINK_X, UNLINK_Y, UNLINK_Z
 
Constructor Summary
RotationTrack3ds()
           
 
Method Summary
 RotationKey3ds key(int i)
          Access a specific key.
 int keys()
          Get number of keys.
 RotationKey3ds[] track()
          Access the track (the whole array of keys).
 
Methods inherited from class mri.v3ds.Track3ds
flags, loopType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationTrack3ds

public RotationTrack3ds()
Method Detail

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

mri.v3ds
v0.1