public class Matrix3x2dStack extends Matrix3x2d
Matrix3x2d instances. This resembles the matrix stack known from legacy OpenGL.
This Matrix3x2dStack class inherits from Matrix3x2d, so the current/top matrix is always the
Matrix3x2dStack/Matrix3x2d itself. This affects all operations in Matrix3x2d that take
another Matrix3x2d as parameter. If a Matrix3x2dStack is used as argument to those methods, the
effective argument will always be the current matrix of the matrix stack.
| Constructor and Description |
|---|
Matrix3x2dStack()
Do not invoke manually! Only meant for serialization.
|
Matrix3x2dStack(int stackSize)
Create a new
Matrix3x2dStack of the given size. |
| Modifier and Type | Method and Description |
|---|---|
Matrix3x2dStack |
clear()
Set the stack pointer to zero and set the current/bottom matrix to
identity. |
boolean |
equals(Object obj) |
int |
hashCode() |
Matrix3x2dStack |
popMatrix()
Decrement the stack pointer by one.
|
Matrix3x2dStack |
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, _m10, _m11, _m20, _m21, determinant, equals, get, get, get, get, get, get, get, get3x3, get3x3, get3x3, get3x3, get3x3, get3x3, get4x4, get4x4, get4x4, get4x4, get4x4, get4x4, identity, invert, invert, m00, m01, m10, m11, m20, m21, mul, mul, mulLocal, mulLocal, normalizedPositiveX, normalizedPositiveY, origin, positiveX, positiveY, rotate, rotate, rotateAbout, rotateAbout, rotateLocal, rotateLocal, rotateTo, rotateTo, rotation, scale, scale, scale, scale, scale, scale, scale, scale, scaleAround, scaleAround, scaleAround, scaleAround, scaleAroundLocal, scaleAroundLocal, scaleAroundLocal, scaleAroundLocal, scaleLocal, scaleLocal, scaleLocal, scaleLocal, scaling, scaling, set, set, set, set, set, set, set, setTranslation, setTranslation, setView, span, testAar, testCircle, testPoint, toString, toString, transform, transform, transform, transformDirection, transformDirection, transformDirection, transformPosition, transformPosition, transformPosition, translate, translate, translate, translate, translateLocal, translateLocal, translateLocal, translateLocal, translation, translation, unproject, unprojectInv, view, view, viewArea, zeropublic Matrix3x2dStack(int stackSize)
Matrix3x2dStack 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 Matrix3x2dStack simply only consists of this
Matrix3x2dpublic Matrix3x2dStack()
Invoking this constructor from client code will result in an inconsistent state of the
created Matrix3x2dStack instance.
public Matrix3x2dStack clear()
identity.public Matrix3x2dStack pushMatrix()
public Matrix3x2dStack popMatrix()
This will effectively dispose of the current matrix.
public int hashCode()
hashCode in class Matrix3x2dpublic boolean equals(Object obj)
equals in class Matrix3x2dpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Matrix3x2dIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class Matrix3x2dIOExceptionCopyright © 2015–2019 JOML. All rights reserved.