Package icyllis.arc3d.core
Class Matrix3
java.lang.Object
icyllis.arc3d.core.Matrix3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix3
identity()
Create a new identity matrix.void
Reset this matrix to the identity.void
store
(long p) Get this matrix data, store them into an address (UNSAFE).void
storeAligned
(long p) Get this matrix data, store them into an address (UNSAFE).
-
Field Details
-
Constructor Details
-
Method Details
-
identity
Create a new identity matrix.- Returns:
- an identity matrix
-
setIdentity
public void setIdentity()Reset this matrix to the identity. -
store
public void store(long p) Get this matrix data, store them into an address (UNSAFE). NOTE: This method does not perform memory security checks.- Parameters:
p
- the pointer of the array to store
-
storeAligned
public void storeAligned(long p) Get this matrix data, store them into an address (UNSAFE). The data matches std140 layout so it is not tightly packed. NOTE: This method does not perform memory security checks.- Parameters:
p
- the pointer of the array to store, must be aligned
-