-
public final class Mat4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMat4.Companion
-
Field Summary
Fields Modifier and Type Field Description private Float3rightprivate Float3upprivate Float3forwardprivate Float3positionprivate final Float3scaleprivate final Float3translationprivate final Float3rotationprivate final Mat3upperLeftprivate Float4xprivate Float4yprivate Float4zprivate Float4w
-
Method Summary
Modifier and Type Method Description final Float3getRight()final UnitsetRight(Float3 right)final Float3getUp()final UnitsetUp(Float3 up)final Float3getForward()final UnitsetForward(Float3 forward)final Float3getPosition()final UnitsetPosition(Float3 position)final Float3getScale()final Float3getTranslation()final Float3getRotation()final Mat3getUpperLeft()final Float4getX()final UnitsetX(Float4 x)final Float4getY()final UnitsetY(Float4 y)final Float4getZ()final UnitsetZ(Float4 z)final Float4getW()final UnitsetW(Float4 w)final Float4get(Integer column)final Floatget(Integer column, Integer row)final Float4get(MatrixColumn column)final Floatget(MatrixColumn column, Integer row)final Floatinvoke(Integer row, Integer column)final Unitinvoke(Integer row, Integer column, Float v)final Unitset(Integer column, Float4 v)final Unitset(Integer column, Integer row, Float v)final Mat4unaryMinus()final Mat4inc()final Mat4dec()final Mat4plus(Float v)final Mat4minus(Float v)final Mat4times(Float v)final Mat4times(Mat4 m)final Float4times(Float4 v)final Mat4div(Float v)final Mat4compareTo(Float v, Float delta)final Mat4compareTo(Mat4 m, Float delta)final Booleanequals(Float v, Float delta)final Booleanequals(Mat4 m, Float delta)final Float3toEulerAngles(RotationsOrder order)Get the Euler angles in degrees from this rotation MatrixDon't forget to extract the rotation with rotation if this is a transposed matrix final QuaterniontoQuaternion()Get the Quaternion from this rotation MatrixDon't forget to extract the rotation with rotation if this is a transposed matrix final FloatArraytoFloatArray()StringtoString()-
-
Method Detail
-
getForward
final Float3 getForward()
-
setForward
final Unit setForward(Float3 forward)
-
getPosition
final Float3 getPosition()
-
setPosition
final Unit setPosition(Float3 position)
-
getTranslation
final Float3 getTranslation()
-
getRotation
final Float3 getRotation()
-
getUpperLeft
final Mat3 getUpperLeft()
-
get
final Float4 get(MatrixColumn column)
-
get
final Float get(MatrixColumn column, Integer row)
-
unaryMinus
final Mat4 unaryMinus()
-
toEulerAngles
final Float3 toEulerAngles(RotationsOrder order)
Get the Euler angles in degrees from this rotation Matrix
Don't forget to extract the rotation with rotation if this is a transposed matrix
- Parameters:
order- The order in which to apply rotations.
-
toQuaternion
final Quaternion toQuaternion()
Get the Quaternion from this rotation Matrix
Don't forget to extract the rotation with rotation if this is a transposed matrix
-
toFloatArray
final FloatArray toFloatArray()
-
-
-
-