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
Vectorcoordinates.Parameters: angle : float
Rotation angle in radians, unless degrees is True.
axis :
Vector, optionalanchor_point :
Point, optionalrot_point :
Point, optionalfrom_vector, to_vector :
Vector, optionaldegrees :
bool, optionalIf True, you are saying that the
angleis in degrees.transform_matrix :
ndarrayfix_anchor_point :
bool, optionalIf True, leave the tail of the vector (
Vector.p0) fixed (default: False).See also
core.math.rotate