public interface PMatrix
apply
and preApply
methods for this.Modifier and Type | Method and Description |
---|---|
void |
apply(float n00,
float n01,
float n02,
float n10,
float n11,
float n12)
Multiply this matrix by another.
|
void |
apply(float n00,
float n01,
float n02,
float n03,
float n10,
float n11,
float n12,
float n13,
float n20,
float n21,
float n22,
float n23,
float n30,
float n31,
float n32,
float n33)
Multiply this matrix by another.
|
void |
apply(PMatrix source)
Multiply this matrix by another.
|
void |
apply(PMatrix2D source)
Multiply this matrix by another.
|
void |
apply(PMatrix3D source)
Multiply this matrix by another.
|
float |
determinant() |
PMatrix |
get()
Returns a copy of this PMatrix.
|
float[] |
get(float[] target)
Copies the matrix contents into a float array.
|
boolean |
invert()
Invert this matrix.
|
float[] |
mult(float[] source,
float[] target)
Multiply a multi-element vector against this matrix.
|
PVector |
mult(PVector source,
PVector target)
Multiply source by this matrix, and return the result.
|
void |
preApply(float n00,
float n01,
float n02,
float n10,
float n11,
float n12)
Apply another matrix to the left of this one.
|
void |
preApply(float n00,
float n01,
float n02,
float n03,
float n10,
float n11,
float n12,
float n13,
float n20,
float n21,
float n22,
float n23,
float n30,
float n31,
float n32,
float n33)
Apply another matrix to the left of this one.
|
void |
preApply(PMatrix left)
Apply another matrix to the left of this one.
|
void |
preApply(PMatrix2D left)
Apply another matrix to the left of this one.
|
void |
preApply(PMatrix3D left)
Apply another matrix to the left of this one.
|
void |
reset()
Make this an identity matrix.
|
void |
rotate(float angle) |
void |
rotate(float angle,
float v0,
float v1,
float v2) |
void |
rotateX(float angle) |
void |
rotateY(float angle) |
void |
rotateZ(float angle) |
void |
scale(float s) |
void |
scale(float sx,
float sy) |
void |
scale(float x,
float y,
float z) |
void |
set(float[] source)
Set the contents of this matrix to the contents of source.
|
void |
set(float m00,
float m01,
float m02,
float m10,
float m11,
float m12)
Set the matrix content to this 2D matrix or its 3D equivalent.
|
void |
set(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33)
Set the matrix content to the 3D matrix supplied, if this matrix is 3D.
|
void |
set(PMatrix src)
Make this matrix become a copy of src.
|
void |
shearX(float angle) |
void |
shearY(float angle) |
void |
translate(float tx,
float ty) |
void |
translate(float tx,
float ty,
float tz) |
void |
transpose()
Transpose this matrix; rows become columns and columns rows.
|
void reset()
PMatrix get()
float[] get(float[] target)
void set(PMatrix src)
void set(float[] source)
void set(float m00, float m01, float m02, float m10, float m11, float m12)
void set(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
void translate(float tx, float ty)
void translate(float tx, float ty, float tz)
void rotate(float angle)
void rotateX(float angle)
void rotateY(float angle)
void rotateZ(float angle)
void rotate(float angle, float v0, float v1, float v2)
void scale(float s)
void scale(float sx, float sy)
void scale(float x, float y, float z)
void shearX(float angle)
void shearY(float angle)
void apply(PMatrix source)
void apply(PMatrix2D source)
void apply(PMatrix3D source)
void apply(float n00, float n01, float n02, float n10, float n11, float n12)
void apply(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33)
void preApply(PMatrix left)
void preApply(PMatrix2D left)
void preApply(PMatrix3D left)
void preApply(float n00, float n01, float n02, float n10, float n11, float n12)
void preApply(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33)
PVector mult(PVector source, PVector target)
float[] mult(float[] source, float[] target)
void transpose()
boolean invert()
float determinant()