Previous topic

civpy.math.rotate2

Next topic

civpy.math.fsolve

This Page

civpy.math.rotate3

civpy.math.rotate3(x, angle_x=0, angle_y=0, angle_z=0, origin=(0, 0, 0))[source]

Rotates the input 3D vectors by the specified angles.

Parameters:
x : array

One or multiple vectors to rotate.

angle_x, angle_y, angle_z : float

The counter clockwise rotation angles about the x, y, and z axes in radians.

origin : array

The point about which the rotation will be performed.