Back to project page fun-gl.
The source code is released under:
Apache License
If you think the Android project fun-gl listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jcxavier.android.opengl.game.type; //from w w w . j a v a2 s .c om import com.jcxavier.android.opengl.math.Vector3; /** * Created on 16/03/2014. * * @author Joo Xavier <jcxavier@jcxavier.com> */ public interface Transformable { /** * Sets the position of the object. * * @param position the position to set */ void setPosition(final Vector3 position); /** * Retrieves the position of the object. * * @return the position */ Vector3 getPosition(); /** * Sets the scale of the object. * * @param scale the scale to set */ void setScale(final Vector3 scale); /** * Retrieves the scale of the object. * * @return the scale */ Vector3 getScale(); /** * Sets the rotation of the object, where the rotation for each axis is represented by the vector components and is * given in degrees. * * @param rotation the rotation to set */ void setRotation(final Vector3 rotation); /** * Retrieves the rotation of the object. * * @return the rotation */ Vector3 getRotation(); }