Lines Matching defs:rotation

41  * you can add some keyFrames for a given time or a given keyFrameIndex, for translation rotation and scale.
58 * step for splitting rotation that have a n ange above PI/2
71 * Inner Rotation type class to kep track on a rotation Euler angle
76 * The rotation Quaternion
78 Quaternion rotation = new Quaternion();
80 * This rotation expressed in Euler angles
84 * the index of the parent key frame is this keyFrame is a splitted rotation
89 rotation.loadIdentity();
93 rotation.set(rot);
95 rotation.toAngles(a);
101 rotation.fromAngles(a);
134 * rotation array for this animation
222 * Adds a key frame for the given rotation at the given time<br>
226 * @param rotation the rotation Quaternion to use for this keyFrame
229 public void addTimeRotation(float time, Quaternion rotation) {
230 addKeyFrameRotation((int) (time / tpf), rotation);
234 * Adds a key frame for the given rotation at the given keyFrame index<br>
238 * @param rotation the rotation Quaternion to use for this keyFrame
241 public void addKeyFrameRotation(int keyFrameIndex, Quaternion rotation) {
243 r.set(rotation);
247 * Adds a key frame for the given rotation at the given time.<br>
249 * Note that the generated rotation will be stored as a quaternion and interpolated using a spherical linear interpolation (slerp)<br>
253 * @param x the rotation around the x axis (aka yaw) in radians
254 * @param y the rotation around the y axis (aka roll) in radians
255 * @param z the rotation around the z axis (aka pitch) in radians
262 * Adds a key frame for the given rotation at the given key frame index.<br>
264 * Note that the generated rotation will be stored as a quaternion and interpolated using a spherical linear interpolation (slerp)<br>
268 * @param x the rotation around the x axis (aka yaw) in radians
269 * @param y the rotation around the y axis (aka roll) in radians
270 * @param z the rotation around the z axis (aka pitch) in radians
277 // since we are using quaternions and slerp for rotation interpolation, we cannot interpolate over an angle higher than PI
279 //previous rotation keyframe
298 //for each step we create a new rotation by interpolating the angles
365 * returns the rotation for a given frame index
366 * creates the rotation if it doesn't exists
368 * @return the rotation
434 rotations[j] = rot.slerp(((Rotation) keyFrames[i]).rotation, ((Rotation) keyFrames[key]).rotation, val);
452 rotations[j] = ((Quaternion) ((Rotation) keyFrames[i]).rotation).clone();