public abstract class MatrixCorrector
extends java.lang.Object
The MatrixCorrector
enforces boundaries in the transformation of a Matrix
.
Constructor and Description |
---|
MatrixCorrector() |
MatrixCorrector(android.graphics.Matrix matrix) |
Modifier and Type | Method and Description |
---|---|
float |
correctAbsolute(int vector,
float x)
* Returns the corrected value of the given absolute vector.
|
float |
correctRelative(int vector,
float x)
Returns the corrected value of the given relative vector.
|
android.graphics.Matrix |
getMatrix()
* Returns the matrix.
|
protected float[] |
getValues()
* * Returns the matrix values.
|
void |
performAbsoluteCorrections()
Does corrections AFTER matrix operations have been applied.
|
void |
setMatrix(android.graphics.Matrix matrix)
* * Sets the matrix.
|
public MatrixCorrector()
public MatrixCorrector(android.graphics.Matrix matrix)
public void performAbsoluteCorrections()
Does corrections AFTER matrix operations have been applied.
This implementation only copies the values of the matrix into its float array values
.
public float correctRelative(int vector, float x)
Returns the corrected value of the given relative vector.
vector
- x
- public float correctAbsolute(int vector, float x)
Returns the corrected value of the given absolute vector.
vector
- x
- public android.graphics.Matrix getMatrix()
Returns the matrix.
public void setMatrix(android.graphics.Matrix matrix)
Sets the matrix.
matrix
- protected float[] getValues()
Returns the matrix values.