Quaternion.Multiply Method (Quaternion, Quaternion)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Multiplies the two specified quaternions.
Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function Multiply ( _
m1 As Quaternion, _
m2 As Quaternion _
) As Quaternion
'Usage
Dim m1 As Quaternion
Dim m2 As Quaternion
Dim returnValue As Quaternion
returnValue = Quaternion.Multiply(m1, m2)
public static Quaternion Multiply(
Quaternion m1,
Quaternion m2
)
public:
static Quaternion Multiply(
Quaternion m1,
Quaternion m2
)
static member Multiply :
m1:Quaternion *
m2:Quaternion -> Quaternion
Parameters
- m1
Type: Microsoft.WindowsMobile.DirectX.Quaternion
Source Quaternion structure.
- m2
Type: Microsoft.WindowsMobile.DirectX.Quaternion
Source Quaternion structure.
Return Value
Type: Microsoft.WindowsMobile.DirectX.Quaternion
A Quaternion structure that is the product of two quaternions.
Remarks
Transformations are concatenated in the same order for the Multiply and Multiply methods.
In the following C# code example, assuming that mX and mY represent the same rotations as qX and qY, both m and q represent the same rotations.
m = Matrix.Multiply(mX, mY)
q = Quaternion.Multiply(qX, qY)
The multiplication of quaternions is not commutative. The order in which they are multiplied is important.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0