Line.transformed_collection

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

Create a collection of transformed Line objects.

Parameters

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

Returns

list[Line] – The transformed lines.

Examples

>>> from math import radians
>>> from compas.geometry import Vector
>>> from compas.geometry import Point
>>> 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]
>>> lines = Line.transformed_collection(lines, R)
>>> b = lines[0]
>>> b.end
Point(0.000, 1.000, 0.000)
>>> a is b
False