Previous topic

civpy.math.rotation_matrix3

Next topic

civpy.math.rotate3

This Page

civpy.math.rotate2

civpy.math.rotate2(x, angle, origin=(0, 0))[source]

Rotates the input 2D vectors by the specified angle.

Parameters:
x : array

One or multiple vectors to rotate.

angle : float

The counter clockwise rotation angle in radians.

origin : array

The point about which the rotation will be performed.