@@ -0,0 +1,2703 @@
+/* Copyright 2015 Samsung Electronics Co., LTD%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.gearvrf.animation;%0A%0Aimport org.gearvrf.GVRHybridObject;%0Aimport org.gearvrf.GVRSceneObject;%0Aimport org.gearvrf.GVRTransform;%0A%0A/** Size animation. */%0Apublic class GVRPositionAnimation extends GVRTransformAnimation %7B%0A%0A    private final float mStartX, mStartY, mStartZ;%0A    private final float mDeltaX, mDeltaY, mDeltaZ;%0A%0A    /**%0A     * Position the transform, by potentially different amounts in each direction.%0A     * %0A     * @param target%0A     *            %7B@link GVRTransform%7D to animate.%0A     * @param duration%0A     *            The animation duration, in seconds.%0A     * @param positionX%0A     *            Target x position%0A     * @param positionY%0A     *            Target y position%0A     * @param positionZ%0A     *            Target z position%0A     */%0A    public GVRPositionAnimation(GVRTransform target, float duration, float positionX,%0A            float positionY, float positionZ) %7B%0A        super(target, duration);%0A%0A        mStartX = mTransform.getPositionX();%0A        mStartY = mTransform.getPositionY();%0A        mStartZ = mTransform.getPositionZ();%0A%0A        mDeltaX = positionX - mStartX;%0A        mDeltaY = positionY - mStartY;%0A        mDeltaZ = positionZ - mStartZ;%0A    %7D%0A%0A    /**%0A     * Position the transform, by potentially different amounts in each direction.%0A     * %0A     * @param target%0A     *            %7B@link GVRSceneObject%7D containing a %7B@link GVRTransform%7D%0A     * @param duration%0A     *            The animation duration, in seconds.%0A     * @param positionX%0A     *            Target x position%0A     * @param positionY%0A     *            Target y position%0A     * @param positionZ%0A     *            Target z position%0A     */%0A    public GVRPositionAnimation(GVRSceneObject target, float duration,%0A            float positionX, float positionY, float positionZ) %7B%0A        this(getTransform(target), duration, positionX, positionY, positionZ);%0A    %7D%0A%0A    @Override%0A    protected void animate(GVRHybridObject target, float ratio) %7B%0A        mTransform.setPosition(mStartX + ratio * mDeltaX, mStartY + ratio%0A                * mDeltaY, mStartZ + ratio * mDeltaZ);%0A    %7D%0A%7D%0A

Add a position animation.