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

Fields

float
x-component of force (N)
float
y-component of force (N)
float
z-component of force (N)

Constructor

Signature

Methods

from_dict()

Signature
Deserialize from dictionary.
required
Dictionary containing force data
Returns: Force: Reconstructed force object

to_dict()

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