transform_points

compas.geometry.transform_points(points, T)[source]

Transform multiple points with one transformation matrix.

Parameters
  • points (list of Point or list of list of float) – A list of points to be transformed.

  • T (Transformation or list of list of float) – The transformation to apply.

Examples

>>> points = [[1, 0, 0], [1, 2, 4], [4, 7, 1]]
>>> T = matrix_from_axis_and_angle([0, 2, 0], math.radians(45), point=[4, 5, 6])
>>> points_transformed = transform_points(points, T)