NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::Quaternion Struct Reference

Detailed Description

A struct.

Structure used to store quaternion rotation representation. A rotation of unit vector u with rotation theta can be represented in quaternion as: q={cos(theta/2)+ i(u*sin(theta/2))}

Definition at line 123 of file MathTypes.h.

Public Member Functions

 Quaternion ()
 Angle or real component of the quaternion representation. More...
 
 Quaternion (double qxinput, double qyinput, double qzinput, double qwinput)
 

Data Fields

double qx
 
double qy
 
double qz
 
double qw
 Axis or imaginary component of the quaternion representation. More...
 

Constructor & Destructor Documentation

◆ Quaternion() [1/2]

cvcore::Quaternion::Quaternion ( )
inline

Angle or real component of the quaternion representation.

Definition at line 128 of file MathTypes.h.

◆ Quaternion() [2/2]

cvcore::Quaternion::Quaternion ( double  qxinput,
double  qyinput,
double  qzinput,
double  qwinput 
)
inline

Definition at line 136 of file MathTypes.h.

Field Documentation

◆ qw

double cvcore::Quaternion::qw

Axis or imaginary component of the quaternion representation.

Definition at line 126 of file MathTypes.h.

◆ qx

double cvcore::Quaternion::qx

Definition at line 125 of file MathTypes.h.

◆ qy

double cvcore::Quaternion::qy

Definition at line 125 of file MathTypes.h.

◆ qz

double cvcore::Quaternion::qz

Definition at line 125 of file MathTypes.h.


The documentation for this struct was generated from the following file: