Example usage for Java android.graphics Matrix fields, constructors, methods, implement or subclass
The text is from its open source code.
Matrix() Create an identity matrix | |
Matrix(Matrix src) Create a matrix that is a (deep) copy of src |
boolean | equals(Object obj) Returns true iff obj is a Matrix and its values equal our values. |
void | getValues(float[] values) Copy 9 values from the matrix into the array. |
boolean | invert(Matrix inverse) If this matrix can be inverted, return true and if inverse is not null, set inverse to be the inverse of this matrix. |
boolean | isIdentity() Returns true if the matrix is identity. |
void | mapPoints(float[] pts) Apply this matrix to the array of 2D points, and write the transformed points back into the array |
boolean | mapRect(RectF rect) Apply this matrix to the rectangle, and write the transformed rectangle back into it. |
boolean | mapRect(RectF dst, RectF src) Apply this matrix to the src rectangle, and write the transformed rectangle into dst. |
void | mapVectors(float[] vecs) Apply this matrix to the array of 2D vectors, and write the transformed vectors back into the array. |
boolean | postConcat(Matrix other) Postconcats the matrix with the specified matrix. |
boolean | postRotate(float degrees) Postconcats the matrix with the specified rotation. |
boolean | postRotate(float degrees, float px, float py) Postconcats the matrix with the specified rotation. |
boolean | postScale(float sx, float sy) Postconcats the matrix with the specified scale. |
boolean | postScale(float sx, float sy, float px, float py) Postconcats the matrix with the specified scale. |
boolean | postSkew(float kx, float ky) Postconcats the matrix with the specified skew. |
boolean | postSkew(float kx, float ky, float px, float py) Postconcats the matrix with the specified skew. |
boolean | postTranslate(float dx, float dy) Postconcats the matrix with the specified translation. |
boolean | preConcat(Matrix other) Preconcats the matrix with the specified matrix. |
boolean | preRotate(float degrees) Preconcats the matrix with the specified rotation. |
boolean | preRotate(float degrees, float px, float py) Preconcats the matrix with the specified rotation. |
boolean | preScale(float sx, float sy) Preconcats the matrix with the specified scale. |
boolean | preSkew(float kx, float ky) Preconcats the matrix with the specified skew. |
boolean | preTranslate(float dx, float dy) Preconcats the matrix with the specified translation. |
boolean | rectStaysRect() Returns true if will map a rectangle to another rectangle. |
void | reset() Set the matrix to identity |
void | set(Matrix src) (deep) copy the src matrix into this matrix. |
boolean | setRectToRect(RectF src, RectF dst, ScaleToFit stf) Set the matrix to the scale and translate values that map the source rectangle to the destination rectangle, returning true if the the result can be represented. |
void | setRotate(float degrees, float px, float py) Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py). |
void | setRotate(float degrees) Set the matrix to rotate about (0,0) by the specified number of degrees. |
void | setScale(float sx, float sy) Set the matrix to scale by sx and sy. |
void | setScale(float sx, float sy, float px, float py) Set the matrix to scale by sx and sy, with a pivot point at (px, py). |
void | setTranslate(float dx, float dy) Set the matrix to translate by (dx, dy). |
void | setValues(float[] values) Copy 9 values from the array into the matrix. |
String | toString() |