Translation.from_vector

classmethod Translation.from_vector(vector)[source]

Create a translation transformation from a translation vector.

Parameters

vector (list or compas.geometry.Vector) – The translation vector.

Returns

Translation – The translation transformation.