UnsafeNativeMethods.Quaternion.Conjugate Method

Language:

Returns the conjugate of a quaternion.

Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the equivalent method in the Microsoft.DirectX structures.

Definition

Visual Basic Public Shared Function Conjugate( _
    ByVal pOut As Quaternion, _
    ByVal pQuat As Quaternion _
) As Quaternion
C# public static Quaternion Conjugate(
    Quaternion pOut,
    Quaternion pQuat
);
C++ public:
static Quaternion Conjugate(
    Quaternion pOut,
    Quaternion pQuat
);
JScript public static function Conjugate(
    pOut : Quaternion,
    pQuat : Quaternion
) : Quaternion;

Parameters

pOut Microsoft.DirectX.Quaternion
A Quaternion structure that is the conjugate of the pQuat parameter.
pQuat Microsoft.DirectX.Quaternion
Source Quaternion.

Return Value

Microsoft.DirectX.Quaternion
A Quaternion structure that is the conjugate of the pQuat parameter.

Remarks

Given a quaternion (x, y, z, w), the Conjugate method returns the quaternion (-x, -y, -z, w).

The return value for this method is the same value returned in the pOut parameter. This allows you to use the Conjugate method as a parameter for another method.

See Also


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center