コード例 #1
0
 /**
  * Sets the scale of this {@link ATransformable3D} object. If this is part of a scene graph, the
  * graph will be notified of the change.
  *
  * @param scale double The scaling factor on axes.
  * @return A reference to this {@link ATransformable3D} to facilitate chaining.
  */
 public ATransformable3D setScale(double scale) {
   mScale.x = scale;
   mScale.y = scale;
   mScale.z = scale;
   markModelMatrixDirty();
   return this;
 }
コード例 #2
0
 /**
  * Orients this {@link ATransformable3D} object to 'look at' the specified point. If this is part
  * of a scene graph, the graph will be notified of the change.
  *
  * @param x {@code double} The look at target x coordinate.
  * @param y {@code double} The look at target y coordinate.
  * @param z {@code double} The look at target z coordinate.
  * @return A reference to this {@link ATransformable3D} to facilitate chaining.
  */
 public ATransformable3D setLookAt(double x, double y, double z) {
   mLookAt.x = x;
   mLookAt.y = y;
   mLookAt.z = z;
   resetToLookAt();
   markModelMatrixDirty();
   return this;
 }
コード例 #3
0
 /**
  * Sets the x component of the position for this {@link ATransformable3D}. If this is part of a
  * scene graph, the graph will be notified of the change.
  *
  * @param x double The new x component for the position.
  */
 public void setX(double x) {
   mPosition.x = x;
   if (mLookAtEnabled && mLookAtValid) resetToLookAt();
   markModelMatrixDirty();
 }