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.math; //from w ww . j av a2 s . c o m /** * Created on 11/03/2014. * * @author Joo Xavier <jcxavier@jcxavier.com> */ interface IVector<T extends IVector<T>> { /** * Sets this vector from the given vector. * * @param v The vector * @return This vector for chaining */ T set(T v); /** * Adds the given vector to this vector. * * @param v The vector * @return This vector for chaining */ T add(T v); /** * Subtracts the given vector from this vector. * * @param v The vector * @return This vector for chaining */ T sub(T v); /** * Negates this vector. * * @return This vector for chaining */ T negate(); }