Beam.rotated

Beam.rotated(angle, axis=None, point=None)[source]

Returns a rotated copy of this geometry.

Parameters:
anglefloat

The angle of rotation in radians.

axiscompas.geometry.Vector, optional

The axis of rotation. Defaults to the z-axis.

pointcompas.geometry.Point, optional

The base point of the rotation axis. Defaults to the origin.

Returns:
Geometry

The rotated geometry.