Export (0) Print
Expand All

Vector2.Transform Method (Vector2, Quaternion)

Transforms a single Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

'Declaration
Public Shared Function Transform ( _
	value As Vector2, _
	rotation As Quaternion _
) As Vector2

Parameters

value
Type: Microsoft.Xna.Framework.Vector2
The vector to rotate.
rotation
Type: Microsoft.Xna.Framework.Quaternion
The Quaternion rotation to apply.

Return Value

Type: Microsoft.Xna.Framework.Vector2
Returns a new Vector2 containing the result of the rotation.

ExceptionCondition
ArgumentException

destinationArray is too small to contain the result.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft