public class LXMatrix extends Object
Modifier and Type | Field and Description |
---|---|
float |
m11 |
float |
m12 |
float |
m13 |
float |
m14 |
float |
m21 |
float |
m22 |
float |
m23 |
float |
m24 |
float |
m31 |
float |
m32 |
float |
m33 |
float |
m34 |
float |
m41 |
float |
m42 |
float |
m43 |
float |
m44 |
Constructor and Description |
---|
LXMatrix()
Makes a new identity matrix.
|
LXMatrix(float[] m) |
LXMatrix(float m11,
float m12,
float m13,
float m14,
float m21,
float m22,
float m23,
float m24,
float m31,
float m32,
float m33,
float m34,
float m41,
float m42,
float m43,
float m44) |
LXMatrix(LXMatrix that)
Copies the existing matrix
|
Modifier and Type | Method and Description |
---|---|
LXMatrix |
identity()
Resets this matrix to the identity matrix
|
LXMatrix |
multiply(float b11,
float b12,
float b13,
float b14,
float b21,
float b22,
float b23,
float b24,
float b31,
float b32,
float b33,
float b34,
float b41,
float b42,
float b43,
float b44) |
LXMatrix |
multiply(LXMatrix m)
Multiplies the matrix by another matrix
|
LXMatrix |
rotateX(float rx) |
LXMatrix |
rotateY(float ry) |
LXMatrix |
rotateZ(float rz) |
LXMatrix |
scale(float sv) |
LXMatrix |
scale(float sx,
float sy,
float sz) |
LXMatrix |
scaleX(float sx) |
LXMatrix |
scaleY(float sy) |
LXMatrix |
scaleZ(float sz) |
LXMatrix |
set(float[] m) |
LXMatrix |
set(LXMatrix that) |
String |
toString() |
LXMatrix |
translate(float tx,
float ty,
float tz) |
LXMatrix |
translateX(float tx) |
LXMatrix |
translateY(float ty) |
LXMatrix |
translateZ(float tz) |
float |
x() |
float |
y() |
float |
z() |
public float m11
public float m12
public float m13
public float m14
public float m21
public float m22
public float m23
public float m24
public float m31
public float m32
public float m33
public float m34
public float m41
public float m42
public float m43
public float m44
public LXMatrix()
public LXMatrix(float[] m)
public LXMatrix(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
public LXMatrix(LXMatrix that)
that
- matrixpublic LXMatrix multiply(LXMatrix m)
m
- Matrix to multiply bypublic LXMatrix multiply(float b11, float b12, float b13, float b14, float b21, float b22, float b23, float b24, float b31, float b32, float b33, float b34, float b41, float b42, float b43, float b44)
public float x()
public float y()
public float z()
public LXMatrix scale(float sv)
public LXMatrix scaleX(float sx)
public LXMatrix scaleY(float sy)
public LXMatrix scaleZ(float sz)
public LXMatrix scale(float sx, float sy, float sz)
public LXMatrix translateX(float tx)
public LXMatrix translateY(float ty)
public LXMatrix translateZ(float tz)
public LXMatrix translate(float tx, float ty, float tz)
public LXMatrix rotateX(float rx)
public LXMatrix rotateY(float ry)
public LXMatrix rotateZ(float rz)
public LXMatrix set(float[] m)
public LXMatrix identity()
LX library by Mark C. Slee. © 2012-2020