다음을 통해 공유


Matrix44 Class

Definition

The Matrix44 class holds a 4x4 matrix for transforming coordinates.

[Android.Runtime.Register("android/graphics/Matrix44", ApiSince=35, DoNotGenerateAcw=true)]
public class Matrix44 : Java.Lang.Object
[<Android.Runtime.Register("android/graphics/Matrix44", ApiSince=35, DoNotGenerateAcw=true)>]
type Matrix44 = class
    inherit Object
Inheritance
Matrix44
Attributes

Remarks

The Matrix44 class holds a 4x4 matrix for transforming coordinates. It is similar to Matrix, and should be used when you want to manipulate the canvas in 3D. Values are kept in row-major order. The values and operations are treated as column vectors.

Java documentation for android.graphics.Matrix44.

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

Matrix44()

The default Matrix44 constructor will instantiate an identity matrix.

Matrix44(IntPtr, JniHandleOwnership)
Matrix44(Matrix)

Creates and returns a Matrix44 by taking the 3x3 Matrix and placing it on the 0 of the z-axis by setting row 2 and column 2 to the identity as seen in the following operation:

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsIdentity

Returns true if Matrix44 is equal to identity matrix.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass
ThresholdType

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Concat(Matrix44)

Multiplies this matrix (A) and provided Matrix (B) in the order of A * B.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Get(Int32, Int32)

Gets the value at the matrix's row and column.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetValues(Single[])

Copies matrix values into the provided array in row-major order.

Invert()

Inverts the Matrix44, then return true if successful, false if unable to invert.

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)
Map(Single, Single, Single, Single, Single[])

Multiplies (x, y, z, w) vector by the Matrix44, then returns the new (x, y, z, w).

Map(Single, Single, Single, Single)

Multiplies (x, y, z, w) vector by the Matrix44, then returns the new (x, y, z, w).

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)
Reset()

Sets the Matrix44 to the identity matrix.

Rotate(Single, Single, Single, Single)

Applies a rotation around a given axis, then returns self.

Scale(Single, Single, Single)

Applies scaling factors to this Matrix44, then returns self.

Set(Int32, Int32, Single)

Sets the value at the matrix's row and column to the provided value.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetValues(Single[])

Replaces the Matrix's values with the values in the provided array.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
Translate(Single, Single, Single)

Applies a translation to this Matrix44, then returns self.

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)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to