Interface Vec2<T,V2 extends Vec2<T,V2>>
- Type Parameters:
T
- - the object this a vector ofV2
- - the object to return for this-returning methods
public interface Vec2<T,V2 extends Vec2<T,V2>>
Utility class for vectors of any object. NOT INTENDED FOR USE AS GENERIC
OBJECT VECTOR, USE
Obj2
- See Also:
-
Method Summary
Modifier and TypeMethodDescription_createNew
(T x, T y) This is an internal method. override in Vec2 subclasses, but DO NOT CALL YOURSELF.default T[]
asArray()
Create & return an array with all the components of the vector.x()
Returns the x component of this vector.default V2
xy()
Swizzle method.y()
Returns the y component of this vector.default V2
yx()
Swizzle method.
-
Method Details
-
x
-
y
-
_createNew
-
yx
-
xy
-
asArray
Create & return an array with all the components of the vector.- Returns:
- an array with all the components of the vector.
-