Matrix3f
open classMatrix3f
kotlin.Any | |
↳ | android.renderscript.Matrix3f |
Class for exposing the native RenderScript rs_matrix3x3 type back to the Android system.
Summary
Public constructors | |
---|---|
Matrix3f() Creates a new identity 3x3 matrix |
|
Matrix3f(dataArray: FloatArray!) Creates a new matrix and sets its values from the given parameter |
Public methods | |
---|---|
open Float |
Returns the value for a given row and column |
open FloatArray! |
getArray() Return a reference to the internal array representing matrix values. |
open Unit |
Sets the values of the matrix to those of the parameter |
open Unit |
Sets the matrix values to identity |
open Unit |
loadMultiply(lhs: Matrix3f!, rhs: Matrix3f!) Sets current values to be the result of multiplying two given matrices |
open Unit |
loadRotate(rot: Float) Makes the upper 2x2 a rotation matrix of the given angle |
open Unit |
loadRotate(rot: Float, x: Float, y: Float, z: Float) Sets current values to be a rotation matrix of certain angle about a given axis |
open Unit |
Makes the upper 2x2 a scale matrix of given dimensions |
open Unit |
Sets current values to be a scale matrix of given dimensions |
open Unit |
loadTranslate(x: Float, y: Float) Sets current values to be a translation matrix of given dimensions |
open Unit |
Post-multiplies the current matrix by a given parameter |
open Unit |
Modifies the upper 2x2 of the current matrix by post-multiplying it with a rotation matrix of given angle |
open Unit |
Modifies the current matrix by post-multiplying it with a rotation matrix of certain angle about a given axis |
open Unit |
Modifies the upper 2x2 of the current matrix by post-multiplying it with a scale matrix of given dimensions |
open Unit |
Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions |
open Unit |
Sets the value for a given row and column |
open Unit |
Modifies the current matrix by post-multiplying it with a translation matrix of given dimensions |
open Unit |
Sets the current matrix to its transpose |
Public constructors
Matrix3f
Matrix3f(dataArray: FloatArray!)
Creates a new matrix and sets its values from the given parameter
Parameters | |
---|---|
dataArray |
FloatArray!: values to set the matrix to, must be 9 floats long |
Public methods
get
open funget(
x: Int,
y: Int
): Float
Deprecated: Deprecated in Java.
Returns the value for a given row and column
Parameters | |
---|---|
x |
Int: column of the value to return |
y |
Int: row of the value to return |
Return | |
---|---|
Float |
value in the yth row and xth column |
getArray
open fungetArray(): FloatArray!
Deprecated: Deprecated in Java.
Return a reference to the internal array representing matrix values. Modifying this array will also change the matrix
Return | |
---|---|
FloatArray! |
internal array representing the matrix |
load
open funload(src: Matrix3f!): Unit
Deprecated: Deprecated in Java.
Sets the values of the matrix to those of the parameter
Parameters | |
---|---|
src |
Matrix3f!: matrix to load the values from |
loadIdentity
open funloadIdentity(): Unit
Deprecated: Deprecated in Java.
Sets the matrix values to identity
loadMultiply
open funloadMultiply(
lhs: Matrix3f!,
rhs: Matrix3f!
): Unit
Deprecated: Deprecated in Java.
Sets current values to be the result of multiplying two given matrices
Parameters | |
---|---|
lhs |
Matrix3f!: left hand side matrix |
rhs |
Matrix3f!: right hand side matrix |
loadRotate
open funloadRotate(rot: Float): Unit
Deprecated: Deprecated in Java.
Makes the upper 2x2 a rotation matrix of the given angle
Parameters | |
---|---|
rot |
Float: rotation angle |
loadRotate
open funloadRotate(
rot: Float,
x: Float,
y: Float,
z: Float
): Unit
Deprecated: Deprecated in Java.
Sets current values to be a rotation matrix of certain angle about a given axis
Parameters | |
---|---|
rot |
Float: angle of rotation |
x |
Float: rotation axis x |
y |
Float: rotation axis y |
z |
Float: rotation axis z |
loadScale
open funloadScale(
x: Float,
y: Float
): Unit
Deprecated: Deprecated in Java.
Makes the upper 2x2 a scale matrix of given dimensions
Parameters | |
---|---|
x |
Float: scale component x |
y |
Float: scale component y |
loadScale
open funloadScale(
x: Float,
y: Float,
z: Float
): Unit
Deprecated: Deprecated in Java.
Sets current values to be a scale matrix of given dimensions
Parameters | |
---|---|
x |
Float: scale component x |
y |
Float: scale component y |
z |
Float: scale component z |
loadTranslate
open funloadTranslate(
x: Float,
y: Float
): Unit
Deprecated: Deprecated in Java.
Sets current values to be a translation matrix of given dimensions
Parameters | |
---|---|
x |
Float: translation component x |
y |
Float: translation component y |
multiply
open funmultiply(rhs: Matrix3f!): Unit
Deprecated: Deprecated in Java.
Post-multiplies the current matrix by a given parameter
Parameters | |
---|---|
rhs |
Matrix3f!: right hand side to multiply by |
rotate
open funrotate(rot: Float): Unit
Deprecated: Deprecated in Java.
Modifies the upper 2x2 of the current matrix by post-multiplying it with a rotation matrix of given angle
Parameters | |
---|---|
rot |
Float: angle of rotation |
rotate
open funrotate(
rot: Float,
x: Float,
y: Float,
z: Float
): Unit
Deprecated: Deprecated in Java.
Modifies the current matrix by post-multiplying it with a rotation matrix of certain angle about a given axis
Parameters | |
---|---|
rot |
Float: angle of rotation |
x |
Float: rotation axis x |
y |
Float: rotation axis y |
z |
Float: rotation axis z |
scale
open funscale(
x: Float,
y: Float
): Unit
Deprecated: Deprecated in Java.
Modifies the upper 2x2 of the current matrix by post-multiplying it with a scale matrix of given dimensions
Parameters | |
---|---|
x |
Float: scale component x |
y |
Float: scale component y |
scale
open funscale(
x: Float,
y: Float,
z: Float
): Unit
Deprecated: Deprecated in Java.
Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions
Parameters | |
---|---|
x |
Float: scale component x |
y |
Float: scale component y |
z |
Float: scale component z |
set
open funset(
x: Int,
y: Int,
v: Float
): Unit
Deprecated: Deprecated in Java.
Sets the value for a given row and column
Parameters | |
---|---|
x |
Int: column of the value to set |
y |
Int: row of the value to set |
translate
open funtranslate(
x: Float,
y: Float
): Unit
Deprecated: Deprecated in Java.
Modifies the current matrix by post-multiplying it with a translation matrix of given dimensions
Parameters | |
---|---|
x |
Float: translation component x |
y |
Float: translation component y |
transpose
open funtranspose(): Unit
Deprecated: Deprecated in Java.
Sets the current matrix to its transpose