Package de.linusdev.lutils.math.vector
Class Vector.View<V extends Vector>
java.lang.Object
de.linusdev.lutils.math.vector.Vector.View<V>
- All Implemented Interfaces:
Vector
- Direct Known Subclasses:
FloatN.View
- Enclosing interface:
Vector
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.linusdev.lutils.math.vector.Vector
Vector.View<V extends Vector> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint @NotNull []The returned mapping must always map to a non view vector.booleanWhether this vector is array backed.booleanWhether this vector is buffer backed.booleanisView()Whether this vector is only a view onto another vector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.linusdev.lutils.math.vector.Vector
getMemberCount, getStructure
-
Field Details
-
original
-
mapping
protected final int @NotNull [] mapping
-
-
Constructor Details
-
View
-
-
Method Details
-
getOriginal
- Specified by:
getOriginalin interfaceVector- Returns:
- the original vector this vector views to
-
getMapping
public int @NotNull [] getMapping()Description copied from interface:VectorThe returned mapping must always map to a non view vector.- Specified by:
getMappingin interfaceVector- Returns:
- the mapping to the original vector
-
isArrayBacked
public boolean isArrayBacked()Description copied from interface:VectorWhether this vector is array backed.- Specified by:
isArrayBackedin interfaceVector- Returns:
trueif this vector is array backed.
-
isBufferBacked
public boolean isBufferBacked()Description copied from interface:VectorWhether this vector is buffer backed. If this method returnstrue,Vector.getStructure()will not throw anUnsupportedOperationException.- Specified by:
isBufferBackedin interfaceVector- Returns:
trueif this vector is buffer backed.
-
isView
public boolean isView()Description copied from interface:VectorWhether this vector is only a view onto another vector.
-