java.lang.Object | |
↳ | android.renderscript.Matrix4f |
Class for exposing the native Renderscript rs_matrix4x4 type back to the Android system.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new identity 4x4 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 current matrix to its inverse
| |||||||||||
Sets the current matrix to its inverse transpose
| |||||||||||
Sets the values of the matrix to those of the parameter
| |||||||||||
Sets current values to be a perspective projection matrix
| |||||||||||
Sets the matrix values to identity
| |||||||||||
Sets current values to be the result of multiplying two given
matrices
| |||||||||||
Set current values to be an orthographic projection matrix
| |||||||||||
Set current values to be an orthographic projection matrix
with the right and bottom clipping planes set to the given
values.
| |||||||||||
Sets current values to be a perspective projection matrix
| |||||||||||
Helper function to set the current values to a perspective
projection matrix with aspect ratio defined by the parameters
and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
| |||||||||||
Sets current values to be a rotation matrix of certain angle
about a given axis
| |||||||||||
Sets current values to be a scale matrix of given dimensions
| |||||||||||
Sets current values to be a translation 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 certain angle about a given axis
| |||||||||||
Modifies the current matrix by post-multiplying it with a
scale matrix of given dimensions
| |||||||||||
Sets the value for a given row and column
| |||||||||||
Modifies the current matrix by post-multiplying it with a
translation matrix of given dimensions
| |||||||||||
Sets the current matrix to its transpose
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new matrix and sets its values from the given parameter
dataArray | values to set the matrix to, must be 16 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 current matrix to its inverse transpose
Sets the values of the matrix to those of the parameter
src | matrix to load the values from |
---|
Sets current values to be a perspective projection matrix
l | location of the left vertical clipping plane |
---|---|
r | location of the right vertical clipping plane |
b | location of the bottom horizontal clipping plane |
t | location of the top horizontal clipping plane |
n | location of the near clipping plane, must be positive |
f | location of the far clipping plane, must be positive |
Sets current values to be the result of multiplying two given matrices
lhs | left hand side matrix |
---|---|
rhs | right hand side matrix |
Set current values to be an orthographic projection matrix
l | location of the left vertical clipping plane |
---|---|
r | location of the right vertical clipping plane |
b | location of the bottom horizontal clipping plane |
t | location of the top horizontal clipping plane |
n | location of the near clipping plane |
f | location of the far clipping plane |
Set current values to be an orthographic projection matrix with the right and bottom clipping planes set to the given values. Left and top clipping planes are set to 0. Near and far are set to -1, 1 respectively
w | location of the right vertical clipping plane |
---|---|
h | location of the bottom horizontal clipping plane |
Sets current values to be a perspective projection matrix
fovy | vertical field of view angle in degrees |
---|---|
aspect | aspect ratio of the screen |
near | near cliping plane, must be positive |
far | far clipping plane, must be positive |
Helper function to set the current values to a perspective projection matrix with aspect ratio defined by the parameters and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
w | screen width |
---|---|
h | screen height |
Sets current values to be a rotation matrix of certain angle about a given axis
rot | angle of rotation |
---|---|
x | rotation axis x |
y | rotation axis y |
z | rotation axis z |
Sets current values to be a scale matrix of given dimensions
x | scale component x |
---|---|
y | scale component y |
z | scale component z |
Sets current values to be a translation matrix of given dimensions
x | translation component x |
---|---|
y | translation component y |
z | translation component z |
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 certain angle about a given axis
rot | angle of rotation |
---|---|
x | rotation axis x |
y | rotation axis y |
z | rotation axis z |
Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions
x | scale component x |
---|---|
y | scale component y |
z | scale component z |
Sets the value for a given row and column
x | column of the value to set |
---|---|
y | row of the value to set |
Modifies the current matrix by post-multiplying it with a translation matrix of given dimensions
x | translation component x |
---|---|
y | translation component y |
z | translation component z |