/** * 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; }
/** * Extracts the pitch Euler angle from the current orientation. * * @return double The pitch Euler angle. */ public double getRotZ() { return mOrientation.getRoll(); }
/** * 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; }