Drake

A 3dimensional rotation. More...
#include <drake/automotive/maliput/api/lane_data.h>
Public Member Functions  
Rotation ()  
Default constructor, creating an identity Rotation. More...  
const Quaternion< double > &  quat () const 
Provides a quaternion representation of the rotation. More...  
void  set_quat (const Quaternion< double > &quaternion) 
Sets value from a Quaternion quaternion (which will be normalized). More...  
Matrix3< double >  matrix () const 
Provides a rotation matrix representation of the rotation. More...  
Vector3< double >  rpy () const 
Provides a representation of rotation as a vector of angles [roll, pitch, yaw] (in radians). More...  
double  roll () const 
Returns the roll component of the Rotation (in radians). More...  
double  pitch () const 
Returns the pitch component of the Rotation (in radians). More...  
double  yaw () const 
Returns the yaw component of the Rotation (in radians). More...  
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable  
Rotation (const Rotation &)=default  
Rotation &  operator= (const Rotation &)=default 
Rotation (Rotation &&)=default  
Rotation &  operator= (Rotation &&)=default 
Static Public Member Functions  
static Rotation  FromQuat (const Quaternion< double > &quaternion) 
Constructs a Rotation from a quaternion quaternion (which will be normalized). More...  
static Rotation  FromRpy (const Vector3< double > &rpy) 
Constructs a Rotation from rpy , a vector of [roll, pitch, yaw] , expressing a roll around X, followed by pitch around Y, followed by yaw around Z (with all angles in radians). More...  
static Rotation  FromRpy (double roll, double pitch, double yaw) 
Constructs a Rotation expressing a roll around X, followed by pitch around Y, followed by yaw around Z (with all angles in radians). More...  
A 3dimensional rotation.

inlinestatic 
Constructs a Rotation from a quaternion quaternion
(which will be normalized).
Constructs a Rotation from rpy
, a vector of [roll, pitch, yaw]
, expressing a roll around X, followed by pitch around Y, followed by yaw around Z (with all angles in radians).
Constructs a Rotation expressing a roll
around X, followed by pitch
around Y, followed by yaw
around Z (with all angles in radians).
Provides a rotation matrix representation of the rotation.

inline 
Returns the pitch component of the Rotation (in radians).

inline 
Provides a quaternion representation of the rotation.

inline 
Returns the roll component of the Rotation (in radians).
Provides a representation of rotation as a vector of angles [roll, pitch, yaw]
(in radians).

inline 
Sets value from a Quaternion quaternion
(which will be normalized).

inline 
Returns the yaw component of the Rotation (in radians).