healpy.rotator.rotateVector¶
-
healpy.rotator.
rotateVector
(rotmat, vec, vy=None, vz=None, do_rot=True)¶ Rotate a vector (or a list of vectors) using the rotation matrix given as first argument.
Parameters: rotmat : float, array-like shape (3,3)
The rotation matrix
vec : float, scalar or array-like
The vector to transform (shape (3,) or (3,N)), or x component (scalar or shape (N,)) if vy and vz are given
vy : float, scalar or array-like, optional
The y component of the vector (scalar or shape (N,))
vz : float, scalar or array-like, optional
The z component of the vector (scalar or shape (N,))
do_rot : bool, optional
if True, really perform the operation, if False do nothing.
Returns: vec : float, array
The component of the rotated vector(s).
See also