java.lang.Object
uk.ac.manchester.tornado.api.types.matrix.Matrix4x4Float
- All Implemented Interfaces:
Serializable,PrimitiveStorage<FloatBuffer>,TornadoMatrixInterface<FloatBuffer>
Matrix4x4Float relies on preview features of the Java platform:
Matrix4x4Floatrefers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBuffer()voidclear()column(int col) diag()voidfill(float value) floatget(int index) floatget(int i, int j) Returns the value.longlongintReturns the number of columns in the matrix.intReturns the number of rows in this matrix.voididentity()Turns this matrix into an identity matrix.voidloadFromBuffer(FloatBuffer buffer) row(int row) voidset(int index, float value) voidset(int i, int j, float value) Sets the value.voidintsize()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Matrix4x4Float
public Matrix4x4Float() -
Matrix4x4Float
-
-
Method Details
-
get
public float get(int index) -
set
public void set(int index, float value) -
get
public float get(int i, int j) Returns the value.- Parameters:
i- row indexj- col index- Returns:
- float
-
set
public void set(int i, int j, float value) Sets the value.- Parameters:
i- row indexj- col index
-
getNumRows
public int getNumRows()Returns the number of rows in this matrix.- Returns:
- int
-
getNumColumns
public int getNumColumns()Returns the number of columns in the matrix.- Returns:
- int
-
row
-
column
-
diag
-
fill
public void fill(float value) -
duplicate
-
set
-
toString
-
toString
-
identity
public void identity()Turns this matrix into an identity matrix. -
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<FloatBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<FloatBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<FloatBuffer>
-
calculateULP
-
clear
public void clear() -
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoMatrixInterface<FloatBuffer>
-
getNumBytesWithHeader
public long getNumBytesWithHeader()- Specified by:
getNumBytesWithHeaderin interfaceTornadoMatrixInterface<FloatBuffer>
-
getSegment
- Specified by:
getSegmentin interfaceTornadoMatrixInterface<FloatBuffer>
-
getSegmentWithHeader
- Specified by:
getSegmentWithHeaderin interfaceTornadoMatrixInterface<FloatBuffer>
-
Matrix4x4Floatwhen preview features are enabled.