rotate_points_xy

compas.geometry.rotate_points_xy(points, angle, origin=None)[source]

Rotates points in the XY plane around the Z axis at a specific origin.

Parameters
  • points (list of point) – A list of points.

  • angle (float) – The angle of rotation in radians.

  • origin (point, optional) – The origin of the rotation axis. Default is [0.0, 0.0, 0.0].

Returns

list – The rotated points in the XY plane (Z=0).

Examples

>>>