Skip to main content
A class to represent 3D angular velocity, in radians per second. The rotation rate about the x, y and z axes. Supports mathematical operations and conversions to/from various formats. A linear velocity is a Velocity. The two types do not add or subtract: AngularVelocity + Velocity raises TypeError. A calculation that needs both reads the fields, for example linear.x + angular.z * half_track.

Fields

float
rotation rate about the x axis (rad/s)
float
rotation rate about the y axis (rad/s)
float
rotation rate about the z axis (rad/s)

Constructor

Signature
Initialize an AngularVelocity object.
required
rotation rate about the x axis in radians per second
required
rotation rate about the y axis in radians per second
required
rotation rate about the z axis in radians per second

Properties

float
float
float

Methods

from_dict()

Signature
Deserialize from dictionary; JSON-shaped values such as "1.5" are converted

to_dict()

Signature
Serialize to dictionary for JSON transfer: {"x", "y", "z"}