|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.freedesktop.cairo.CairoObject
org.freedesktop.cairo.Matrix
TODO: error handling
Method Summary | |
double |
getX0()
|
double |
getXX()
|
double |
getXY()
|
double |
getY0()
|
double |
getYX()
|
double |
getYY()
|
void |
invert()
Inverts this matrix. |
static Matrix |
multiply(Matrix a,
Matrix b)
Multiplies 2 matrices and returns the result. |
void |
rotate(double radians)
Appends rotation transformation to this matrix. |
void |
scale(double sx,
double sy)
Appends non-uniform scaling to this matrix. |
void |
setX0(double x0)
|
void |
setXX(double xx)
|
void |
setXY(double xy)
|
void |
setY0(double y0)
|
void |
setYX(double yx)
|
void |
setYY(double yy)
|
Point |
transformDistance(Point distance)
Transforms the given distance and returns transformed co-ordinates |
Point |
transformPoint(Point point)
Transforms the given point and returns transformed co-ordinates |
void |
translate(double tx,
double ty)
Appends a transaltion transformation to this matrix. |
Methods inherited from class org.gnu.glib.Struct |
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void translate(double tx, double ty)
tx
- X axis translationty
- Y axis translationpublic void scale(double sx, double sy)
sx
- X axis scaling factorsy
- Y axis scaling factorpublic void rotate(double radians)
radians
- The rotation angle in radians.public void invert()
public static Matrix multiply(Matrix a, Matrix b)
a
- first matrixb
- second matrix
public Point transformDistance(Point distance)
public Point transformPoint(Point point)
public double getXX()
public void setXX(double xx)
public double getYX()
public void setYX(double yx)
public double getXY()
public void setXY(double xy)
public double getYY()
public void setYY(double yy)
public double getX0()
public void setX0(double x0)
public double getY0()
public void setY0(double y0)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |