Designed to contain rotation data of the positional tracking. More...
Functions | |
def | init_rotation (self, Rotation rot) |
Deep copy from another Rotation . More... | |
def | init_matrix (self, Matrix3f matrix) |
Inits the Rotation from a Matrix3f . More... | |
def | init_orientation (self, Orientation orient) |
Inits the Rotation from a Orientation . More... | |
def | init_angle_translation (self, float angle, Translation axis) |
Inits the Rotation from an angle and an arbitrary 3D axis. More... | |
def | set_orientation (self, Orientation py_orientation) |
Sets the Rotation from an Orientation . More... | |
def | get_orientation (self) |
Returns the Orientation corresponding to the current Rotation . More... | |
def | get_rotation_vector (self) |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula. More... | |
def | set_rotation_vector (self, float input0, float input1, float input2) |
Sets the Rotation from a rotation vector (using Rodrigues' transformation). More... | |
def | get_euler_angles (self, radian=True) |
Converts the Rotation as Euler angles. More... | |
def | set_euler_angles (self, float input0, float input1, float input2, radian=True) |
Sets the Rotation from the Euler angles. More... | |
def | inverse (self) |
Inverses the matrix. | |
def | inverse_mat (self, Matrix3f rotation) |
Inverses the Matrix3f passed as a parameter. More... | |
def | transpose (self) |
Sets the Matrix3f to its transpose. | |
def | transpose_mat (self, Matrix3f rotation) |
Returns the transpose of a Matrix3f. More... | |
def | set_identity (self) |
Sets the Matrix3f to identity. More... | |
def | identity (self) |
Creates an identity Matrix3f. More... | |
def | set_zeros (self) |
Sets the Matrix3f to zero. | |
def | zeros (self) |
Creates a Matrix3f filled with zeros. More... | |
def | get_infos (self) |
Returns the components of the Matrix3f in a string. More... | |
def | matrix_name (self) |
Name of the matrix (optional). | |
def | r (self) |
Numpy array of inner data. | |
Designed to contain rotation data of the positional tracking.
It inherits from the generic Matrix3f .
def init_rotation | ( | self, | |
Rotation | rot | ||
) |
def init_matrix | ( | self, | |
Matrix3f | matrix | ||
) |
def init_orientation | ( | self, | |
Orientation | orient | ||
) |
Inits the Rotation from a Orientation .
orient | : Orientation to be used. |
def init_angle_translation | ( | self, | |
float | angle, | ||
Translation | axis | ||
) |
Inits the Rotation from an angle and an arbitrary 3D axis.
angle | : The rotation angle in rad. |
axis | : the 3D axis (Translation) to rotate around |
def set_orientation | ( | self, | |
Orientation | py_orientation | ||
) |
Sets the Rotation from an Orientation .
py_orientation | : the Orientation containing the rotation to set. |
def get_orientation | ( | self | ) |
Returns the Orientation corresponding to the current Rotation .
def get_rotation_vector | ( | self | ) |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula.
def set_rotation_vector | ( | self, | |
float | input0, | ||
float | input1, | ||
float | input2 | ||
) |
Sets the Rotation from a rotation vector (using Rodrigues' transformation).
input0 | : First float value |
input1 | : Second float value |
input2 | : Third float value |
def get_euler_angles | ( | self, | |
radian = True |
|||
) |
Converts the Rotation as Euler angles.
radian | : Bool to define whether the angle in is radian (True) or degree (False). Default: True |
def set_euler_angles | ( | self, | |
float | input0, | ||
float | input1, | ||
float | input2, | ||
radian = True |
|||
) |
Sets the Rotation from the Euler angles.
input0 | : Roll value |
input1 | : Pitch value |
input2 | : Yaw value |
radian | : Bool to define whether the angle in is radian (True) or degree (False). Default: True |
|
inherited |
|
inherited |
|
inherited |
Sets the Matrix3f to identity.
|
inherited |
|
inherited |
Returns the components of the Matrix3f in a string.
Referenced by Matrix4f.m(), and Mat.verbose().