sknano.core.math.Vector.rotate

Vector.rotate(angle=None, axis=None, anchor_point=None, rot_point=None, from_vector=None, to_vector=None, degrees=False, transform_matrix=None, fix_anchor_point=False, verbose=False, **kwargs)[source][source]

Rotate Vector coordinates.

Parameters:

angle : float

Rotation angle in radians, unless degrees is True.

axis : Vector, optional

anchor_point : Point, optional

rot_point : Point, optional

from_vector, to_vector : Vector, optional

degrees : bool, optional

If True, you are saying that the angle is in degrees.

transform_matrix : ndarray

fix_anchor_point : bool, optional

If True, leave the tail of the vector (Vector.p0) fixed (default: False).

See also

core.math.rotate