Matrix Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Matrix math utilities.
[Android.Runtime.Register("android/opengl/Matrix", DoNotGenerateAcw=true)]
public class Matrix : Java.Lang.Object
[<Android.Runtime.Register("android/opengl/Matrix", DoNotGenerateAcw=true)>]
type Matrix = class
inherit Object
- Inheritance
- Attributes
Remarks
Matrix math utilities. These methods operate on OpenGL ES format matrices and vectors stored in float arrays.
Matrices are 4 x 4 column-vector matrices stored in column-major order:
m[offset + 0] m[offset + 4] m[offset + 8] m[offset + 12]
m[offset + 1] m[offset + 5] m[offset + 9] m[offset + 13]
m[offset + 2] m[offset + 6] m[offset + 10] m[offset + 14]
m[offset + 3] m[offset + 7] m[offset + 11] m[offset + 15]
Vectors are 4 x 1 column vectors stored in order:
v[offset + 0]
v[offset + 1]
v[offset + 2]
v[offset + 3]
Java documentation for android.opengl.Matrix
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Matrix() |
Obsolete.
This member is deprecated. |
Matrix(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
FrustumM(Single[], Int32, Single, Single, Single, Single, Single, Single) |
Defines a projection matrix in terms of six clip planes. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
InvertM(Single[], Int32, Single[], Int32) |
Inverts a 4 x 4 matrix. |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Length(Single, Single, Single) |
Computes the length of a vector. |
MultiplyMM(Single[], Int32, Single[], Int32, Single[], Int32) |
Multiplies two 4x4 matrices together and stores the result in a third 4x4 matrix. |
MultiplyMV(Single[], Int32, Single[], Int32, Single[], Int32) |
Multiplies a 4 element vector by a 4x4 matrix and stores the result in a 4-element column vector. |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
OrthoM(Single[], Int32, Single, Single, Single, Single, Single, Single) |
Computes an orthographic projection matrix. |
PerspectiveM(Single[], Int32, Single, Single, Single, Single) |
Defines a projection matrix in terms of a field of view angle, an aspect ratio, and z clip planes. |
RotateM(Single[], Int32, Single, Single, Single, Single) |
Rotates matrix m in place by angle a (in degrees) around the axis (x, y, z). |
RotateM(Single[], Int32, Single[], Int32, Single, Single, Single, Single) |
Rotates matrix m by angle a (in degrees) around the axis (x, y, z). |
ScaleM(Single[], Int32, Single, Single, Single) |
Scales matrix m in place by sx, sy, and sz. |
ScaleM(Single[], Int32, Single[], Int32, Single, Single, Single) |
Scales matrix m by x, y, and z, putting the result in sm. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetIdentityM(Single[], Int32) |
Sets matrix m to the identity matrix. |
SetLookAtM(Single[], Int32, Single, Single, Single, Single, Single, Single, Single, Single, Single) |
Defines a viewing transformation in terms of an eye point, a center of view, and an up vector. |
SetRotateEulerM(Single[], Int32, Single, Single, Single) |
Converts Euler angles to a rotation matrix. |
SetRotateEulerM2(Single[], Int32, Single, Single, Single) |
Converts Euler angles to a rotation matrix. |
SetRotateM(Single[], Int32, Single, Single, Single, Single) |
Creates a matrix for rotation by angle a (in degrees) around the axis (x, y, z). |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
TranslateM(Single[], Int32, Single, Single, Single) |
Translates matrix m by x, y, and z in place. |
TranslateM(Single[], Int32, Single[], Int32, Single, Single, Single) |
Translates matrix m by x, y, and z, putting the result in tm. |
TransposeM(Single[], Int32, Single[], Int32) |
Transposes a 4 x 4 matrix. |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |