Class ABFloatN
java.lang.Object
de.linusdev.lutils.math.vector.array.floatn.ABFloatN
- All Implemented Interfaces:
FloatElements,FloatN,Vector
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.linusdev.lutils.math.vector.abstracts.floatn.FloatN
FloatN.FactorView, FloatN.View -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final float[]protected final intFields inherited from interface de.linusdev.lutils.math.general.FloatElements
ELEMENT_SIZE, ELEMENT_TYPE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatget(int index) Get component at positionindex.booleanWhether this vector is array backed.booleanWhether this vector is buffer backed.booleanisView()Whether this vector is only a view onto another vector.voidput(int index, float value) Set component at positionindextovalue.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.linusdev.lutils.math.vector.abstracts.floatn.FloatN
fillFromArray, getAsViewMethods inherited from interface de.linusdev.lutils.math.vector.Vector
getMemberCount, getStructure
-
Field Details
-
array
protected final float[] array -
arrayStartIndex
protected final int arrayStartIndex
-
-
Constructor Details
-
ABFloatN
public ABFloatN(float[] array, int arrayStartIndex) -
ABFloatN
public ABFloatN(int memberCount)
-
-
Method Details
-
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. -
get
public float get(int index) Description copied from interface:FloatNGet component at positionindex. -
put
public void put(int index, float value) Description copied from interface:FloatNSet component at positionindextovalue. -
toString
-