public class Matrix3dStack extends Matrix3d
Matrix3d instances. This resembles the matrix stack known from legacy OpenGL.
This Matrix3dStack class inherits from Matrix3d, so the current/top matrix is always the
Matrix3dStack/Matrix3d itself. This affects all operations in Matrix3d that take another
Matrix3d as parameter. If a Matrix3dStack is used as argument to those methods, the effective
argument will always be the current matrix of the matrix stack.
| Constructor and Description |
|---|
Matrix3dStack()
Do not invoke manually! Only meant for serialization.
|
Matrix3dStack(int stackSize)
Create a new
Matrix3dStack of the given size. |
| Modifier and Type | Method and Description |
|---|---|
Matrix3dStack |
clear()
Set the stack pointer to zero and set the current/bottom matrix to
identity. |
boolean |
equals(Object obj) |
int |
hashCode() |
Matrix3dStack |
popMatrix()
Decrement the stack pointer by one.
|
Matrix3dStack |
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, get, get, get, getColumn, getEulerAnglesZYX, getFloats, getFloats, getNormalizedRotation, getNormalizedRotation, getRotation, getRow, getScale, 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, 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, rotate, rotate, rotate, rotate, rotate, rotate, rotateLocal, rotateLocal, rotateLocal, rotateLocal, rotateLocal, rotateLocal, rotateLocalX, rotateLocalX, rotateLocalY, rotateLocalY, rotateLocalZ, rotateLocalZ, rotateTowards, rotateTowards, rotateTowards, rotateTowards, rotateX, rotateX, rotateXYZ, rotateXYZ, rotateY, rotateY, rotateYXZ, rotateYXZ, rotateYXZ, rotateZ, rotateZ, rotateZYX, rotateZYX, rotation, rotation, rotation, 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, set, set, set, set, set, setColumn, setColumn, setFloats, setLookAlong, setLookAlong, setRow, setRow, setSkewSymmetric, sub, sub, swap, toString, toString, transform, transform, transform, transform, transform, transformTranspose, transformTranspose, transformTranspose, transpose, transpose, zeropublic Matrix3dStack(int stackSize)
Matrix3dStack 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 Matrix3dStack simply only consists of this
Matrix3dpublic Matrix3dStack()
Invoking this constructor from client code will result in an inconsistent state of the
created Matrix3dStack instance.
public Matrix3dStack clear()
identity.public Matrix3dStack pushMatrix()
public Matrix3dStack popMatrix()
This will effectively dispose of the current matrix.
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Matrix3dIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class Matrix3dIOExceptionCopyright © 2015–2019 JOML. All rights reserved.