public class Matrix3fStack extends Matrix3f
Matrix3f instances. This resembles the matrix stack known from legacy OpenGL.
This Matrix3fStack class inherits from Matrix3f, so the current/top matrix is always the
Matrix3fStack/Matrix3f itself. This affects all operations in Matrix3f that take another
Matrix3f as parameter. If a Matrix3fStack is used as argument to those methods, the effective
argument will always be the current matrix of the matrix stack.
| Constructor and Description |
|---|
Matrix3fStack()
Do not invoke manually! Only meant for serialization.
|
Matrix3fStack(int stackSize)
Create a new
Matrix3fStack of the given size. |
| Modifier and Type | Method and Description |
|---|---|
Matrix3fStack |
clear()
Set the stack pointer to zero and set the current/bottom matrix to
identity. |
boolean |
equals(Object obj) |
int |
hashCode() |
Matrix3fStack |
popMatrix()
Decrement the stack pointer by one.
|
Matrix3fStack |
pushMatrix()
Increment the stack pointer by one and set the values of the new current matrix to the one directly below it.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
_m00, _m01, _m02, _m10, _m11, _m12, _m20, _m21, _m22, add, add, cofactor, cofactor, determinant, equals, get, get, get, get, get, get, get, get, get, getColumn, getEulerAnglesZYX, getNormalizedRotation, getNormalizedRotation, getRotation, getRow, getScale, getTransposed, getTransposed, getTransposed, getTransposed, getUnnormalizedRotation, getUnnormalizedRotation, identity, invert, invert, lerp, lerp, lookAlong, lookAlong, lookAlong, lookAlong, m00, m00, m01, m01, m02, m02, m10, m10, m11, m11, m12, m12, m20, m20, m21, m21, m22, m22, mul, mul, mulComponentWise, mulComponentWise, mulLocal, mulLocal, normal, normal, normalizedPositiveX, normalizedPositiveY, normalizedPositiveZ, obliqueZ, obliqueZ, positiveX, positiveY, positiveZ, reflect, reflect, reflect, reflect, reflect, reflect, reflection, reflection, reflection, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotateLocal, rotateLocal, rotateLocal, rotateLocal, rotateLocalX, rotateLocalX, rotateLocalY, rotateLocalY, rotateLocalZ, rotateLocalZ, rotateTowards, rotateTowards, rotateTowards, rotateTowards, rotateX, rotateX, rotateXYZ, rotateXYZ, rotateXYZ, rotateY, rotateY, rotateYXZ, rotateYXZ, rotateYXZ, rotateZ, rotateZ, rotateZYX, rotateZYX, rotateZYX, rotation, rotation, rotation, rotation, rotationTowards, rotationTowards, rotationX, rotationXYZ, rotationY, rotationYXZ, rotationZ, rotationZYX, scale, scale, scale, scale, scale, scale, scaleLocal, scaleLocal, scaling, scaling, scaling, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setColumn, setColumn, setLookAlong, setLookAlong, setRow, setRow, setSkewSymmetric, sub, sub, swap, toString, toString, transform, transform, transform, transformTranspose, transformTranspose, transformTranspose, transpose, transpose, zeropublic Matrix3fStack(int stackSize)
Matrix3fStack of the given size.
Initially the stack pointer is at zero and the current matrix is set to identity.
stackSize - the size of the stack. This must be at least 1, in which case the Matrix3fStack simply only consists of this
Matrix3fpublic Matrix3fStack()
Invoking this constructor from client code will result in an inconsistent state of the
created Matrix3fStack instance.
public Matrix3fStack clear()
identity.public Matrix3fStack pushMatrix()
public Matrix3fStack popMatrix()
This will effectively dispose of the current matrix.
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Matrix3fIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class Matrix3fIOExceptionCopyright © 2015–2019 JOML. All rights reserved.