|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.core.PMatrix2D
public class PMatrix2D
3x2 affine matrix implementation.
Field Summary | |
---|---|
float |
m00
|
float |
m01
|
float |
m02
|
float |
m10
|
float |
m11
|
float |
m12
|
Constructor Summary | |
---|---|
PMatrix2D()
|
|
PMatrix2D(float m00,
float m01,
float m02,
float m10,
float m11,
float m12)
|
|
PMatrix2D(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()
|
PMatrix2D |
get()
Returns a copy of this PMatrix. |
float[] |
get(float[] target)
Copies the matrix contents into a 6 entry float array. |
boolean |
invert()
Invert this matrix. |
float[] |
mult(float[] vec,
float[] out)
Multiply a two element vector against this matrix. |
PVector |
mult(PVector source,
PVector target)
Multiply the x and y coordinates of a PVector against this matrix. |
float |
multX(float x,
float y)
|
float |
multY(float x,
float y)
|
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)
|
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 |
set(PMatrix3D src)
|
void |
skewX(float angle)
|
void |
skewY(float angle)
|
void |
translate(float tx,
float ty)
|
void |
translate(float x,
float y,
float z)
|
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 m10
public float m11
public float m12
Constructor Detail |
---|
public PMatrix2D()
public PMatrix2D(float m00, float m01, float m02, float m10, float m11, float m12)
public PMatrix2D(PMatrix matrix)
Method Detail |
---|
public void reset()
reset
in interface PMatrix
public PMatrix2D 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(PMatrix3D src)
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 x, float y, float z)
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)
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)
mult
in interface PMatrix
public float[] mult(float[] vec, float[] out)
mult
in interface PMatrix
public float multX(float x, float y)
public float multY(float x, float y)
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 |