Arrow.from_data
- classmethod Arrow.from_data(data)
Construct a Arrow from its data representation.
- Parameters
- data
dict
The data dictionary.
- data
- Returns
- Arrow
The constructed arrow.
Examples
>>> from compas.geometry import Arrow >>> from compas.geometry import Vector >>> data = {'position': Vector(0, 0, 0), 'direction': Vector(0, 0, 1)} >>> arrow = Arrow.from_data(data)