Arrow.from_data

classmethod Arrow.from_data(data)

Construct a Arrow from its data representation.

Parameters
datadict

The data dictionary.

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)