Vector.transformed_collection

static Vector.transformed_collection(collection, X)[source]

Create a collection of transformed vectors.

Parameters:
collectionlist[[float, float, float] | compas.geometry.Vector]

The collection of vectors.

Returns:
list[compas.geometry.Vector]

The transformed vectors.

Examples

>>> from compas.geometry import Rotation
>>> R = Rotation.from_axis_and_angle(Vector.Zaxis(), math.radians(90))
>>> u = Vector(1.0, 0.0, 0.0)
>>> vectors = [u]
>>> vectors = Vector.transformed_collection(vectors, R)
>>> v = vectors[0]
>>> print(v)
Vector(x=0.000, y=1.000, z=0.000)
>>> u is v
False