Vector.from_data

classmethod Vector.from_data(data)

Construct a vector from a data dict.

Parameters

data (dict) – The data dictionary.

Returns

compas.geometry.Vector – The vector constructed from the provided data.

Examples

>>> Vector.from_data([0.0, 0.0, 1.0])
Vector(0.000, 0.000, 1.000)