Point.transformed_collection

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

Create a collection of transformed points.

Parameters

collection (list[[float, float, float] | compas.geometry.Point]) – The collection of points.

Returns

list[compas.geometry.Point] – The transformed points.

Examples

>>> from compas.geometry import Translation
>>> T = Translation.from_vector([1.0, 2.0, 3.0])
>>> a = Point(0.0, 0.0, 0.0)
>>> points = [a]
>>> points = Point.transformed_collection(points, T)
>>> b = points[0]
>>> b
Point(1.000, 2.000, 3.000)
>>> a is b
False