Class BBFloatMxN
java.lang.Object
de.linusdev.lutils.struct.abstracts.Structure
de.linusdev.lutils.math.matrix.buffer.floatn.BBFloatMxN
- All Implemented Interfaces:
FloatElements,FloatMxN,Matrix,FloatN,Vector,MemorySizeable,NativeParsable
- Direct Known Subclasses:
BBFloat3x3,BBFloat4x4
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.linusdev.lutils.math.vector.abstracts.floatn.FloatN
FloatN.FactorView, FloatN.ViewNested classes/interfaces inherited from interface de.linusdev.lutils.math.matrix.Matrix
Matrix.MatrixGetter<M extends Matrix>Nested classes/interfaces inherited from interface de.linusdev.lutils.math.vector.Vector
Vector.View<V extends Vector> -
Field Summary
FieldsFields inherited from class de.linusdev.lutils.struct.abstracts.Structure
byteBuf, modified, mostParentStructure, offsetFields 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.floatget(int y, int x) @NotNull StructurebooleanWhether this matrix is array backed.booleanWhether this vector is buffer backed.voidput(int index, float value) Set component at positionindextovalue.voidput(int y, int x, float value) toString()voidSet thisStructureto be a child ofmostParentStructure.Methods inherited from class de.linusdev.lutils.struct.abstracts.Structure
allocate, callUseBufferOf, claimBuffer, generateStructCode, getAlignment, getByteBuffer, getInfo, getMostParentStructure, getOffset, getRequiredSize, isInitialised, isModified, modified, modified, onModification, toString, unmodifiedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.linusdev.lutils.math.matrix.abstracts.floatn.FloatMxN
createFloat2View, createFloat3View, createFloat4ViewMethods inherited from interface de.linusdev.lutils.math.vector.abstracts.floatn.FloatN
fillFromArray, getAsViewMethods inherited from interface de.linusdev.lutils.math.matrix.Matrix
getHeight, getMemberCount, getWidth, isView, positionToIndexMethods inherited from interface de.linusdev.lutils.struct.abstracts.NativeParsable
getPointer
-
Field Details
-
GENERATOR
-
buf
-
-
Constructor Details
-
BBFloatMxN
public BBFloatMxN(boolean allocateBuffer)
-
-
Method Details
-
useBuffer
Description copied from class:StructureSet thisStructureto be a child ofmostParentStructure. -
get
public float get(int y, int x) -
put
public void put(int y, int x, float value) -
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. -
getStructure
- Specified by:
getStructurein interfaceVector- Returns:
- this vector as
Structure
-
isArrayBacked
public boolean isArrayBacked()Description copied from interface:MatrixWhether this matrix is array backed.- Specified by:
isArrayBackedin interfaceMatrix- Specified by:
isArrayBackedin interfaceVector- Returns:
trueif this matrix is array backed.
-
isBufferBacked
public boolean isBufferBacked()Description copied from interface:MatrixWhether this vector is buffer backed.- Specified by:
isBufferBackedin interfaceMatrix- Specified by:
isBufferBackedin interfaceVector- Returns:
trueif this vector is buffer backed.
-
toString
-