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:
- rotmatfloat, array-like shape (3,3)
The rotation matrix
- vecfloat, 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
- vyfloat, scalar or array-like, optional
The y component of the vector (scalar or shape (N,))
- vzfloat, scalar or array-like, optional
The z component of the vector (scalar or shape (N,))
- do_rotbool, optional
if True, really perform the operation, if False do nothing.
- Returns:
- vecfloat, array
The component of the rotated vector(s).
See also