Quaternion.Quaternion Method (Microsoft.Xna.Framework)
Constructs a quaternion with X, Y, Z from Vector3 and rotation component from a scalar.
- C#
- VB
- F#
public Quaternion( Vector3 value, float w )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value
-
Type: Microsoft.Xna.Framework.Vector3
The x, y, z coordinates in 3d-space.
- w
-
Type: System.Single
The rotation component.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web