コード例 #1
0
 /**
  * Adjusts the rotation of this {@link ATransformable3D} by the rotation described by the provided
  * Euler angle. If this is part of a scene graph, the graph will be notified of the change.
  *
  * @param rotZ double The pitch angle in degrees.
  * @return A reference to this {@link ATransformable3D} to facilitate chaining.
  */
 public ATransformable3D setRotZ(double rotZ) {
   mOrientation.fromEuler(mOrientation.getYaw(), rotZ, mOrientation.getRoll());
   mLookAtValid = false;
   markModelMatrixDirty();
   return this;
 }
コード例 #2
0
 /**
  * Extracts the pitch Euler angle from the current orientation.
  *
  * @return double The pitch Euler angle.
  */
 public double getRotZ() {
   return mOrientation.getRoll();
 }
コード例 #3
0
 /**
  * Adjusts the rotation of this {@link ATransformable3D} by the rotation described by the provided
  * Euler angle. If this is part of a scene graph, the graph will be notified of the change.
  *
  * @param rotY double The yaw angle in degrees.
  * @return A reference to this {@link ATransformable3D} to facilitate chaining.
  */
 public ATransformable3D setRotY(double rotY) {
   mOrientation.fromEuler(rotY, mOrientation.getPitch(), mOrientation.getRoll());
   mLookAtValid = false;
   markModelMatrixDirty();
   return this;
 }