Point.transform_collection

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

Transform a collection of points.

Parameters

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

Returns

None – The points are modified in-place.

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]
>>> Point.transform_collection(points, T)
>>> b = points[0]
>>> b
Point(1.000, 2.000, 3.000)
>>> a is b
True