Vector4.Transform Method (array<Vector4[], Int32, Quaternion%, array<Vector4[], Int32, Int32)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Shared Sub Transform ( _
sourceArray As Vector4(), _
sourceIndex As Integer, _
ByRef rotation As Quaternion, _
destinationArray As Vector4(), _
destinationIndex As Integer, _
length As Integer _
)
public static void Transform(
Vector4[] sourceArray,
int sourceIndex,
ref Quaternion rotation,
Vector4[] destinationArray,
int destinationIndex,
int length
)
Parameters
- sourceArray
Type: array<Microsoft.Xna.Framework.Vector4[]
The array of Vector4s containing the range to transform.
- sourceIndex
Type: System.Int32
The index in the source array of the first Vector4 to transform.
- rotation
Type: Microsoft.Xna.Framework.Quaternion%
The Quaternion rotation to apply.
- destinationArray
Type: array<Microsoft.Xna.Framework.Vector4[]
The existing destination array of Vector4s into which to write the results.
- destinationIndex
Type: System.Int32
The index in the destination array of the first result Vector4 to write.
- length
Type: System.Int32
The number of Vector4s to transform.
Exceptions
Exception | 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 nulla null reference (Nothing in Visual Basic). |
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.