Vector2.Transform Method (Vector2, Quaternion, Vector2)
Transforms a Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation.
Syntax
'Declaration
Public Shared Sub Transform ( _
ref value As Vector2, _
ref rotation As Quaternion, _
out result As Vector2 _
)
public static void Transform (
ref Vector2 value,
ref Quaternion rotation,
out Vector2 result
)
public:
static void Transform(
ref Vector2 value,
ref Quaternion rotation,
out Vector2 result
)
Parameters
- value
Type: Vector2
The vector to rotate. - rotation
Type: Quaternion
The Quaternion rotation to apply. - result
Type: Vector2
[OutAttribute] An existing Vector2 filled in with the result of the rotation.
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