Euler¶
Provide functions for the creation and manipulation of Euler angles.
Eulers represent 3 rotations: Pitch, Roll and Yaw.
Eulers are represented using a numpy.array of shape (3,).
-
pyrr.euler.
create
(roll=0.0, pitch=0.0, yaw=0.0, dtype=None)¶ Creates an array storing the specified euler angles.
Input values are in radians.
Parameters: Return type: numpy.array
-
pyrr.euler.
create_from_x_rotation
(theta, dtype=None)¶
-
pyrr.euler.
create_from_y_rotation
(theta, dtype=None)¶
-
pyrr.euler.
create_from_z_rotation
(theta, dtype=None)¶
-
class
pyrr.euler.
index
¶ Defines the indices used to store the Euler values in the numpy array.
-
pitch
= 1¶
-
roll
= 0¶
-
yaw
= 2¶
-
-
pyrr.euler.
pitch
(eulers)¶ Extracts the pitch value from the euler.
Return type: float.
-
pyrr.euler.
roll
(eulers)¶ Extracts the roll value from the euler.
Return type: float.
-
pyrr.euler.
yaw
(eulers)¶ Extracts the yaw value from the euler.
Return type: float.