|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.core.PMatrix3D
public final class PMatrix3D
4x4 matrix implementation.
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
PMatrix3D()
|
|
PMatrix3D(float m00,
float m01,
float m02,
float m10,
float m11,
float m12)
|
|
PMatrix3D(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)
|
|
PMatrix3D(PMatrix matrix)
|
Method Summary | |
---|---|
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 |
apply(PMatrix source)
Multiply this matrix by another. |
void |
apply(PMatrix2D source)
|
void |
apply(PMatrix3D source)
|
float |
determinant()
|
PMatrix3D |
get()
Returns a copy of this PMatrix. |
float[] |
get(float[] target)
Copies the matrix contents into a 16 entry float array. |
boolean |
invert()
Invert this matrix. |
float[] |
mult(float[] source,
float[] target)
Multiply a three or four element vector against this matrix. |
PVector |
mult(PVector source,
PVector target)
Multiply a PVector by this matrix. |
float |
multW(float x,
float y,
float z)
|
float |
multW(float x,
float y,
float z,
float w)
|
float |
multX(float x,
float y)
|
float |
multX(float x,
float y,
float z)
|
float |
multX(float x,
float y,
float z,
float w)
|
float |
multY(float x,
float y)
|
float |
multY(float x,
float y,
float z)
|
float |
multY(float x,
float y,
float z,
float w)
|
float |
multZ(float x,
float y,
float z)
|
float |
multZ(float x,
float y,
float z,
float w)
|
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)
|
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 |
print()
|
void |
reset()
|
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)
|
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 |
set(PMatrix matrix)
|
void |
skewX(float angle)
|
void |
skewY(float angle)
|
void |
translate(float tx,
float ty)
|
void |
translate(float tx,
float ty,
float tz)
|
void |
transpose()
Transpose this matrix. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float m00
public float m01
public float m02
public float m03
public float m10
public float m11
public float m12
public float m13
public float m20
public float m21
public float m22
public float m23
public float m30
public float m31
public float m32
public float m33
Constructor Detail |
---|
public PMatrix3D()
public PMatrix3D(float m00, float m01, float m02, float m10, float m11, float m12)
public PMatrix3D(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)
public PMatrix3D(PMatrix matrix)
Method Detail |
---|
public void reset()
reset
in interface PMatrix
public PMatrix3D get()
get
in interface PMatrix
public float[] get(float[] target)
get
in interface PMatrix
public void set(PMatrix matrix)
set
in interface PMatrix
public void set(float[] source)
set
in interface PMatrix
public void set(float m00, float m01, float m02, float m10, float m11, float m12)
set
in interface PMatrix
public 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
in interface PMatrix
public void translate(float tx, float ty)
translate
in interface PMatrix
public void translate(float tx, float ty, float tz)
translate
in interface PMatrix
public void rotate(float angle)
rotate
in interface PMatrix
public void rotateX(float angle)
rotateX
in interface PMatrix
public void rotateY(float angle)
rotateY
in interface PMatrix
public void rotateZ(float angle)
rotateZ
in interface PMatrix
public void rotate(float angle, float v0, float v1, float v2)
rotate
in interface PMatrix
public void scale(float s)
scale
in interface PMatrix
public void scale(float sx, float sy)
scale
in interface PMatrix
public void scale(float x, float y, float z)
scale
in interface PMatrix
public void skewX(float angle)
skewX
in interface PMatrix
public void skewY(float angle)
skewY
in interface PMatrix
public void apply(PMatrix source)
PMatrix
apply
in interface PMatrix
public void apply(PMatrix2D source)
apply
in interface PMatrix
public void apply(PMatrix3D source)
apply
in interface PMatrix
public void apply(float n00, float n01, float n02, float n10, float n11, float n12)
apply
in interface PMatrix
public 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)
apply
in interface PMatrix
public void preApply(PMatrix2D left)
PMatrix
preApply
in interface PMatrix
public void preApply(PMatrix3D left)
preApply
in interface PMatrix
public void preApply(float n00, float n01, float n02, float n10, float n11, float n12)
preApply
in interface PMatrix
public 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)
preApply
in interface PMatrix
public PVector mult(PVector source, PVector target)
PMatrix
mult
in interface PMatrix
public float[] mult(float[] source, float[] target)
mult
in interface PMatrix
public float multX(float x, float y)
public float multY(float x, float y)
public float multX(float x, float y, float z)
public float multY(float x, float y, float z)
public float multZ(float x, float y, float z)
public float multW(float x, float y, float z)
public float multX(float x, float y, float z, float w)
public float multY(float x, float y, float z, float w)
public float multZ(float x, float y, float z, float w)
public float multW(float x, float y, float z, float w)
public void transpose()
transpose
in interface PMatrix
public boolean invert()
invert
in interface PMatrix
public float determinant()
determinant
in interface PMatrix
public void print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |