v_rotate_about_axis#

static GeometryOperators.v_rotate_about_axis(vector, angle, radians=False, axis='z')[source]#

Evaluate rotation of a vector around an axis.

Parameters:
vectorlist

List of the three component of the vector.

anglefloat

Angle by which the vector is to be rotated (radians or degree).

radiansbool, optional

Whether the angle is expressed in radians. Default is False.

axisstr, optional

Axis about which to rotate the vector. Default is "z".

Returns:
list

List of values for the result vector.