Line.transform_collection

static Line.transform_collection(collection, X)[source]

Transform a collection of Line objects.

Parameters

collection (list[[point, point] | compas.geometry.Line]) – The collection of lines.

Returns

None – The lines are modified in-place.

Examples

>>> from math import radians
>>> from compas.geometry import Point
>>> from compas.geometry import Vector
>>> from compas.geometry import Rotation
>>> R = Rotation.from_axis_and_angle(Vector.Zaxis(), radians(90))
>>> a = Line(Point(0.0, 0.0, 0.0), Point(1.0, 0.0, 0.0))
>>> lines = [a]
>>> Line.transform_collection(lines, R)
>>> b = lines[0]
>>> b.end
Point(0.000, 1.000, 0.000)
>>> a is b
True