| QuaternionDCreateRotation Method (Double, Vector3D, Double, Vector3D, Double, Vector3D, Boolean) |
Gets an orientation quaternion from Euler angles (3 rotations around 3 axes).
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static QuaternionD CreateRotation(
double angle1,
Vector3D axis1,
double angle2,
Vector3D axis2,
double angle3,
Vector3D axis3,
bool useGlobalAxes
)
Public Shared Function CreateRotation (
angle1 As Double,
axis1 As Vector3D,
angle2 As Double,
axis2 As Vector3D,
angle3 As Double,
axis3 As Vector3D,
useGlobalAxes As Boolean
) As QuaternionD
public:
static QuaternionD CreateRotation(
double angle1,
Vector3D axis1,
double angle2,
Vector3D axis2,
double angle3,
Vector3D axis3,
bool useGlobalAxes
)
static member CreateRotation :
angle1 : float *
axis1 : Vector3D *
angle2 : float *
axis2 : Vector3D *
angle3 : float *
axis3 : Vector3D *
useGlobalAxes : bool -> QuaternionD
Parameters
- angle1
- Type: SystemDouble
The first angle. - axis1
- Type: DigitalRune.Mathematics.AlgebraVector3D
The first axis. - angle2
- Type: SystemDouble
The second angle. - axis2
- Type: DigitalRune.Mathematics.AlgebraVector3D
The second axis. - angle3
- Type: SystemDouble
The third angle. - axis3
- Type: DigitalRune.Mathematics.AlgebraVector3D
The third axis. - useGlobalAxes
- Type: SystemBoolean
If set to then the rotation axes are fixed in world space. Otherwise
the rotation axes are fixed on the object and rotated with each rotation.
Return Value
Type:
QuaternionD
The orientation quaternion that describes the same orientation as the given Euler angles.
Exceptions Remarks
A rotation is created from 3 sequential rotations. Each rotation is defined by an angle and
the rotation axis. This method can be used to create a quaternion from Euler angle
representations, often named Azimuth/Elevation/Roll, or Heading/Pitch/Roll.
See Also