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

Fields

float
x-component of torque (N⋅m)
float
y-component of torque (N⋅m)
float
z-component of torque (N⋅m)

Constructor

Signature

Methods

from_dict()

Signature
Deserialize from dictionary.
required
Dictionary containing torque data
Returns: Torque: Reconstructed torque object

to_dict()

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