Vector.transform_collection
-
static
Vector.
transform_collection
(collection, X)[source] Transform a collection of vector objects.
- Parameters
collection (list of
compas.geometry.Vector
) – The collection of vectors.
Examples
>>> R = Rotation.from_axis_and_angle(Vector.Zaxis(), radians(90)) >>> u = Vector(1.0, 0.0, 0.0) >>> vectors = [u] >>> Vector.transform_collection(vectors, R) >>> v = vectors[0] >>> v Vector(0.000, 1.000, 0.000) >>> u is v True