Share via


UnsafeNativeMethods.Quaternion.Normalize(Quaternion,Quaternion) Method (Microsoft.DirectX)

Returns the normal 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 Normalize( _
    ByVal pOut As Quaternion, _
    ByVal pQuat As Quaternion _
) As Quaternion
C# public static Quaternion Normalize(
    Quaternion pOut,
    Quaternion pQuat
);
C++ public:
static Quaternion Normalize(
    Quaternion pOut,
    Quaternion pQuat
);
JScript public static function Normalize(
    pOut : Quaternion,
    pQuat : Quaternion
) : Quaternion;

Parameters

pOut Microsoft.DirectX.Quaternion
A Quaternion structure that is the normal of the quaternion.
pQuat Microsoft.DirectX.Quaternion
Source Quaternion structure.

Return Value

Microsoft.DirectX.Quaternion
A Quaternion structure that is the normal of the quaternion.

Remarks

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

See Also