Vector3
Metres, m/s, newtons... whatever the owning field says. Arithmetic returns Vector3.
Fields
| Name | Type | Default |
|---|---|---|
x | float | 0.0 |
y | float | 0.0 |
z | float | 0.0 |
Example
One instance from the package's own test catalog; the output is its real repr().
Vector3(x=1.0, y=-2.0, z=0.5)to_dict() as JSON
{
"_type": "geometry/Vector3",
"x": 1.0,
"y": -2.0,
"z": 0.5
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.
Methods
Return new values; messages are never mutated.
to_dict
from Msgto_dict() -> dict[str, Any]JSON-safe dict with a "_type" key; arrays keep their dtype and shape.
Operators
Python operators and protocols the type supports.