java.lang.Object | |
↳ | android.support.v8.renderscript.Matrix2f |
Class for exposing the native RenderScript rs_matrix2x2 type back to the Android system.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new identity 2x2 matrix
|
||||||||||
|
Creates a new matrix and sets its values from the given
parameter
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the value for a given row and column
|
||||||||||
|
Return a reference to the internal array representing matrix
values.
|
||||||||||
|
Sets the values of the matrix to those of the parameter
|
||||||||||
|
Sets the matrix values to identity
|
||||||||||
|
Sets current values to be the result of multiplying two given
matrices
|
||||||||||
|
Sets current values to be a rotation matrix of given angle
|
||||||||||
|
Sets current values to be a scale matrix of given dimensions
|
||||||||||
|
Post-multiplies the current matrix by a given parameter
|
||||||||||
|
Modifies the current matrix by post-multiplying it with a
rotation matrix of given angle
|
||||||||||
|
Modifies the current matrix by post-multiplying it with a
scale matrix of given dimensions
|
||||||||||
|
Sets the value for a given row and column
|
||||||||||
|
Sets the current matrix to its transpose
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new identity 2x2 matrix
Creates a new matrix and sets its values from the given parameter
dataArray | values to set the matrix to, must be 4 floats long |
---|
Returns the value for a given row and column
x | column of the value to return |
---|---|
y | row of the value to return |
Return a reference to the internal array representing matrix values. Modifying this array will also change the matrix
Sets the values of the matrix to those of the parameter
src | matrix to load the values from |
---|
Sets the matrix values to identity
Sets current values to be the result of multiplying two given matrices
lhs | left hand side matrix |
---|---|
rhs | right hand side matrix |
Sets current values to be a rotation matrix of given angle
rot | rotation angle |
---|
Sets current values to be a scale matrix of given dimensions
x | scale component x |
---|---|
y | scale component y |
Post-multiplies the current matrix by a given parameter
rhs | right hand side to multiply by |
---|
Modifies the current matrix by post-multiplying it with a rotation matrix of given angle
rot | angle of rotation |
---|
Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions
x | scale component x |
---|---|
y | scale component y |
Sets the value for a given row and column
x | column of the value to set |
---|---|
y | row of the value to set |
Sets the current matrix to its transpose