new AxKeyFrameRotationAxis(timenon-null, anglenon-null, axisnon-null)
Creates a new KeyFrame object for rotation around an arbitrary axis
Parameters:
Name | Type | Description |
---|---|---|
time |
Number | The time at which the keyframe is hit |
angle |
Number | The angle at which to rotate at the time of the keyframe |
axis |
AxVector3 | The axis around which to rotate |
Methods
Deserialize(source) → {Boolean}
Deserializes the keyframe object from the given stream
Parameters:
Name | Type | Description |
---|---|---|
source |
AxStream | The shtream which contains the serialized data |
Returns:
True if deserialization has succeeded
- Type
- Boolean
Process(result)
Gets the resulting transform of the key frame
Parameters:
Name | Type | Description |
---|---|---|
result |
AxMatrix | The transform resulting from processing the keyframe |
Process_2(result, next, blend)
Gets a transform, which is the result of the keyframe, blended with another one, with blending factor given by blend. Normally the another key frame is of the same object and blend is in the range between 0 and 1
Parameters:
Name | Type | Description |
---|---|---|
result |
AxMatrix | The transform resulting from processing the keyframe |
next |
AxKeyFrameRotationAxis | The next keyframe towards which to blend |
blend |
Number | The blending factor ranging from 0 to 1, where 0 is the currnet keyframe and 1 is the next keyframe |
Serialize(destination)
Serialized the keyframe oject and writes the serialized data into the given stream
Parameters:
Name | Type | Description |
---|---|---|
destination |
AxStream | The stream where the serialized data should be written |