XMVector3TransformNormalStream

Transforms a stream of 3D normal vectors by a given matrix.

Syntax

XMFLOAT3* XMVector3TransformNormalStream(
         XMFLOAT3 *pOutputStream,
         UINT OutputStride,
         CONST XMFLOAT3 *pInputStream,
         UINT InputStride,
         UINT VectorCount,
         XMMATRIX M
)

Parameters

  • pOutputStream
    [out] Address of the first XMFLOAT3 in the destination stream.
  • OutputStride
    [in] Stride, in bytes, between vectors in the destination stream.
  • pInputStream
    [in] Address of the first XMFLOAT3 in the stream to be transformed.
  • InputStride
    [in] Stride, in bytes, between vectors in the input stream.
  • VectorCount
    [in] Number of vectors to transform.
  • M
    [in] Transformation matrix.

Return Value

Returns the address of the first XMFLOAT3 in the destination stream.

Remarks

Each vector in the input stream must be normalized.

Requirements

Header: Declared in xnamath.h.

See Also

XMVector3TransformNormal