Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Transform Method (Vector2, Quaternion)

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)

public static Vector2 Transform(
	Vector2 value,
	Quaternion rotation
)

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:
© 2015 Microsoft