Java android.graphics Matrix fields, constructors, methods, implement or subclass

Example usage for Java android.graphics Matrix fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics Matrix.

The text is from its open source code.

Field

Constructor

Matrix()
Create an identity matrix
Matrix(Matrix src)
Create a matrix that is a (deep) copy of src

Method

booleanequals(Object obj)
Returns true iff obj is a Matrix and its values equal our values.
voidgetValues(float[] values)
Copy 9 values from the matrix into the array.
booleaninvert(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.
booleanisIdentity()
Returns true if the matrix is identity.
voidmapPoints(float[] pts)
Apply this matrix to the array of 2D points, and write the transformed points back into the array
booleanmapRect(RectF rect)
Apply this matrix to the rectangle, and write the transformed rectangle back into it.
booleanmapRect(RectF dst, RectF src)
Apply this matrix to the src rectangle, and write the transformed rectangle into dst.
voidmapVectors(float[] vecs)
Apply this matrix to the array of 2D vectors, and write the transformed vectors back into the array.
booleanpostConcat(Matrix other)
Postconcats the matrix with the specified matrix.
booleanpostRotate(float degrees)
Postconcats the matrix with the specified rotation.
booleanpostRotate(float degrees, float px, float py)
Postconcats the matrix with the specified rotation.
booleanpostScale(float sx, float sy)
Postconcats the matrix with the specified scale.
booleanpostScale(float sx, float sy, float px, float py)
Postconcats the matrix with the specified scale.
booleanpostSkew(float kx, float ky)
Postconcats the matrix with the specified skew.
booleanpostSkew(float kx, float ky, float px, float py)
Postconcats the matrix with the specified skew.
booleanpostTranslate(float dx, float dy)
Postconcats the matrix with the specified translation.
booleanpreConcat(Matrix other)
Preconcats the matrix with the specified matrix.
booleanpreRotate(float degrees)
Preconcats the matrix with the specified rotation.
booleanpreRotate(float degrees, float px, float py)
Preconcats the matrix with the specified rotation.
booleanpreScale(float sx, float sy)
Preconcats the matrix with the specified scale.
booleanpreSkew(float kx, float ky)
Preconcats the matrix with the specified skew.
booleanpreTranslate(float dx, float dy)
Preconcats the matrix with the specified translation.
booleanrectStaysRect()
Returns true if will map a rectangle to another rectangle.
voidreset()
Set the matrix to identity
voidset(Matrix src)
(deep) copy the src matrix into this matrix.
booleansetRectToRect(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.
voidsetRotate(float degrees, float px, float py)
Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py).
voidsetRotate(float degrees)
Set the matrix to rotate about (0,0) by the specified number of degrees.
voidsetScale(float sx, float sy)
Set the matrix to scale by sx and sy.
voidsetScale(float sx, float sy, float px, float py)
Set the matrix to scale by sx and sy, with a pivot point at (px, py).
voidsetTranslate(float dx, float dy)
Set the matrix to translate by (dx, dy).
voidsetValues(float[] values)
Copy 9 values from the array into the matrix.
StringtoString()