Axis
- class compas.robots.Axis(xyz='1 0 0', **kwargs)[source]
Bases:
Data
Representation of an axis or vector.
- Attributes
x (float) – X coordinate.
y (float) – Y coordinate.
z (float) – Z coordinate.
attr (dict) – Additional axis attributes.
Methods
Create a copy of the axis instance.
Transform the axis in place.
Return a transformed copy of the axis.
Inherited Methods
Construct an object of this type from the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Validate the object's data against its data schema.
Validate the object's data against its json schema.