Skip to main content
A class to represent 3D velocity. Represents velocity in 3D space with x, y, and z components. Supports mathematical operations and conversions to/from various formats.

Fields

float
x-component of velocity (m/s or rad/s)
float
y-component of velocity (m/s or rad/s)
float
z-component of velocity (m/s or rad/s)

Constructor

Signature

Properties

float
float
float

Methods

from_dict()

Signature
Deserialize from dictionary.
required
Dictionary containing velocity data
Returns: Velocity: Reconstructed velocity object

to_dict()

Signature
Serialize to dictionary for JSON transfer. Returns: dict: Dictionary representation of the velocity