Public 成员函数 | |
| AbRotate3dAnimation (float fromDegrees, float toDegrees, float centerX, float centerY, float depthZ, boolean reverse) | |
| void | initialize (int width, int height, int parentWidth, int parentHeight) |
Protected 成员函数 | |
| void | applyTransformation (float interpolatedTime, Transformation t) |
Private 属性 | |
| final float | mFromDegrees |
| final float | mToDegrees |
| final float | mCenterX |
| final float | mCenterY |
| final float | mDepthZ |
| final boolean | mReverse |
| Camera | mCamera |
© 2012 amsoft.cn 名称:AbRotate3dAnimation.java 描述: An animation that rotates the view on the Y axis between two specified angles. This animation also adds a translation on the Z axis (depth) to improve the effect.
|
inline |
Creates a new 3D rotation on the Y axis. The rotation is defined by its start angle and its end angle. Both angles are in degrees. The rotation is performed around a center point on the 2D space, definied by a pair of X and Y coordinates, called centerX and centerY. When the animation starts, a translation on the Z axis (depth) is performed. The length of the translation can be specified, as well as whether the translation should be reversed in time.
| fromDegrees | the start angle of the 3D rotation |
| toDegrees | the end angle of the 3D rotation |
| centerX | the X center of the 3D rotation |
| centerY | the Y center of the 3D rotation |
| depthZ | the depth z |
| reverse | true if the translation should be reversed, false otherwise |
|
inlineprotected |
|
inline |
|
private |
The m camera.
|
private |
The m center x.
|
private |
The m center y.
|
private |
The m depth z.
|
private |
The m from degrees.
|
private |
The m reverse.
|
private |
The m to degrees.
1.8.8