/** * Retrieves the quat value at the specified index. * @param index the index of the value requested * @param quat the quat to receive the quat value at the index */ public void getQuat(int index, Quat4f quat) { quat.set(this.quats[index]); }
/** * Sets the quat at the specified index for this interpolator. * @param index the index to be changed * @param quat the new quat value */ public void setQuat(int index, Quat4f quat) { this.quats[index].set(quat); }
/** * Retrieves the quat value at the specified index. * @param index the index of the value requested * @param quat returns the interpolator's quat value at the index */ public void getQuat(int index, Quat4f quat) { quat.set(this.quats[index]); }
/** * Retrieves the quat value at the specified index. * @param index the index of the value requested * @param quat the quat object that will have the * quat value at index copied into it. */ public void getQuat(int index, Quat4f quat) { quat.set(this.quats[index]); }
/** * Sets the quat value at the specified index for this * interpolator. * @param index the index to be changed * @param quat the new quat value at index */ public void setQuat(int index, Quat4f quat) { this.quats[index].set(quat); }
/** * Sets the quat value at the specified index for this * interpolator. * @param index the index to be changed * @param quat the new quat value at the index */ public void setQuat(int index, Quat4f quat) { this.quats[index].set(quat); }
/** * Copies the array of quaternion values from this interpolator * into the specified array. * The array must be large enough to hold all of the quats. * The individual array elements must be allocated by the caller. * @param quats array that will receive the quats. * * @since Java 3D 1.2 */ public void getQuats(Quat4f[] quats) { for (int i = 0; i < this.quats.length; i++) { quats[i].set(this.quats[i]); } }
/** * Copies the array of quaternion values from this interpolator * into the specified array. * The array must be large enough to hold all of the quats. * The individual array elements must be allocated by the caller. * @param quats array that will receive the quats * * @since Java 3D 1.2 */ public void getQuats(Quat4f[] quats) { for (int i = 0; i < this.quats.length; i++) { quats[i].set(this.quats[i]); } }
/** * Copies the array of quaternion values from this interpolator * into the specified array. * The array must be large enough to hold all of the quats. * The individual array elements must be allocated by the caller. * @param quats array that will receive the quats. * * @since Java 3D 1.2 */ public void getQuats(Quat4f[] quats) { for (int i = 0; i < this.quats.length; i++) { quats[i].set(this.quats[i]); } }
private void setPathArrays(Quat4f[] quats) { this.quats = new Quat4f[quats.length]; for(int i = 0; i < quats.length; i++) { this.quats[i] = new Quat4f(); this.quats[i].set(quats[i]); } }
AxisAngle4f a = new AxisAngle4f(0.0f, 1.0f, 0.0f, angleInRadians); Quat4f q = new Quat4f(); q.set(a);
private void setPathArrays(Quat4f[] quats, Point3f[] positions) { this.quats = new Quat4f[quats.length]; for(int i = 0; i < quats.length; i++) { this.quats[i] = new Quat4f(); this.quats[i].set(quats[i]); } this.positions = new Point3f[positions.length]; for(int i = 0; i < positions.length; i++) { this.positions[i] = new Point3f(); this.positions[i].set(positions[i]); } }
private void setPathArrays(Quat4f[] quats, Point3f[] positions, float[] scales) { this.quats = new Quat4f[quats.length]; for(int i = 0; i < quats.length; i++) { this.quats[i] = new Quat4f(); this.quats[i].set(quats[i]); } this.positions = new Point3f[positions.length]; for(int i = 0; i < positions.length; i++) { this.positions[i] = new Point3f(); this.positions[i].set(positions[i]); } this.scales = new float[scales.length]; for(int i = 0; i < scales.length; i++) { this.scales[i] = scales[i]; } }
0.0f, 1.0f, 0.0f, (float) Math.toRadians(angleDeg)); Quat4f q = new Quat4f(); q.set(a); orientations.add(q);
debugOutputLn(VALUES, "LwsMotion::createj3dbeh, mat = " + mat); quats[i] = new Quat4f(); quats[i].set(mat); debugOutputLn(VALUES, " and quat = " + quats[i]);
debugOutputLn(VALUES, "LwsMotion::createj3dbeh, mat = " + mat); quats[i] = new Quat4f(); quats[i].set(mat); debugOutputLn(VALUES, " and quat = " + quats[i]);