Vector2.TransformNormal Method (Vector2[], Int32, Matrix, Vector2 , Int32, Int32)
Transforms a specified range in an array of Vector2 vector normals by a specified Matrix and places the results in a specified range in a destination array.
Syntax
'Declaration
Public Shared Sub TransformNormal ( _
sourceArray As Vector2(), _
sourceIndex As Integer, _
ref matrix As Matrix, _
destinationArray As Vector2(), _
destinationIndex As Integer, _
length As Integer _
)
public static void TransformNormal (
Vector2[] sourceArray,
int sourceIndex,
ref Matrix matrix,
Vector2[] destinationArray,
int destinationIndex,
int length
)
public:
static void TransformNormal(
Vector2 sourceArray[],
int sourceIndex,
ref Matrix matrix,
Vector2 destinationArray[],
int destinationIndex,
int length
)
Parameters
- sourceArray
Type: Vector2
The source array. - sourceIndex
Type: Int32
The index of the first Vector2 to transform in the source array. - matrix
Type: Matrix
The Matrix to apply. - destinationArray
Type: Vector2
The destination array into which the resulting Vector2s are written. - destinationIndex
Type: Int32
The index of the position in the destination array where the first result Vector2 should be written. - length
Type: Int32
The number of vector normals to be transformed.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | destinationArray is too small to contain the result or the combination of sourceIndex and length was greater than sourceArray.Length. |
ArgumentNullException | sourceArray or destinationArray is null. |
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone