Esempio n. 1
0
 /**
  * Redefines this Rotation's magnitude to a given angle. The axis, in terms of a single axis and
  * angle of rotation, will remain unchanged.
  *
  * <p>Note that when the Rotation defines no rotation (0 degrees), the axis of rotation is a zero
  * vector. For this reason, changing the rotation angle from 0 to a non-zero value will have no
  * effect without explicitly setting the axis of rotation.
  *
  * @param angle The degree of rotation, in radians, about the current axis.
  */
 public void setAngle(double angle) {
   setAxisAngle(getAxis(), angle);
 }
Esempio n. 2
0
 /**
  * Redefines this Rotation to be about a given axis. The degree of rotation, in terms of a single
  * axis and angle of rotation, will remain unchanged.
  *
  * @param axis The axis about which rotation will occur.
  */
 public void setAxis(Vector3D axis) {
   setAxisAngle(axis, getAngle());
 }