XMVectorRotateLeft (XMVECTOR)

Rotates the vector left by a given number of 32-bit elements.

Syntax

XMVECTOR XMVectorRotateLeft(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

Vector to rotate left.

Return value

Type: XMVECTOR 

Returns the rotated XMVECTOR.

Remarks

The following code demonstrates how this function may be used.

XMVECTOR v = XMVectorSet( 10.0f, 20.0f, 30.0f, 40.0f );
XMVECTOR result = XMVectorRotateLeft( v, 1 );  

The rotated vector (result) will be <20.0f, 30.0f, 40.0f, 10.0f>.

In the case of a constant rotate value, it is more efficient to use the template form of XMVectorRotateLeft:

template<uint32_t Elements>
    XMVECTOR XMVectorRotateLeft(FXMVECTOR V)  

Requirements

Header: Declared in directxmath.h.