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:
pointssequence[[float, float, float] | compas.geometry.Point]

A list of points.

anglefloat

The angle of rotation in radians.

origin[float, float, float] | compas.geometry.Point, optional

The origin of the rotation axis. Default is [0.0, 0.0, 0.0].

Returns:
list[[float, float, 0.0]]

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

Examples

>>>