﻿Quaternions Structure

# Quaternions Structure

http://www.emgu.com
A unit quaternions that defines rotation in 3D

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
```[SerializableAttribute]
public struct Quaternions : IEquatable<Quaternions>```

The Quaternions type exposes the following members.

Constructors
NameDescription
Quaternions
Create a quaternion with the specific values
Top
Properties
NameDescription
AxisAngle
Get or set the equivalent axis angle representation. (x,y,z) is the rotation axis and |(x,y,z)| is the rotation angle in radians
RotationAngle
Get the rotation angle in radian
RotationAxis
Get the rotation axis of the quaternion
W
The W component of the quaternion: the value for cos(rotation angle / 2)
X
The X component of the vector: rotation axis * sin(rotation angle / 2)
Y
The Y component of the vector: rotation axis * sin(rotation angle / 2)
Z
The Z component of the vector: rotation axis * sin(rotation angle / 2)
Top
Methods
NameDescription
Conjugate
Compute the conjugate of the quaternions
Equals(Object) (Inherited from ValueType.)
Equals(Quaternions)
Check if this quaternions equals to other
Finalize (Inherited from Object.)
GetEuler
Get the equivalent euler angle
GetHashCode (Inherited from ValueType.)
GetRotationMatrix
Fill the (3x3) rotation matrix with the value such that it represent the quaternions
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
Multiply
Multiply the current Quaternions with quaternionsOther
RotatePoint
Rotate the specific point and return the result
RotatePoints
Rotate the points in pointsSrc and save the result in pointsDst. In-place operation is supported (pointsSrc == pointsDst).
SetEuler
Set the value of the quaternions using euler angle
Slerp
Perform quaternions linear interpolation
ToString
Get the string representation of the Quaternions
(Overrides ValueTypeToString.)
Top
Operators
NameDescription
Multiply
Computes the multiplication of two quaternions
Top
Fields
NameDescription
Empty
Get the quaternions that represent a rotation of 0 degrees.
Top