rotate_ypr#

caput.astro.coordinates.spherical.rotate_ypr(rot, xhat, yhat, zhat)[source]#

Rotate a basis by a yaw, pitch and roll.

Parameters:
rottuple

Angles of rotation, in radians. This is a 3-tuple in order: yaw, pitch, roll.

xhatarray_like

X-component of the basis. X is the axis of rotation for pitch.

yhatarray_like

Y-component of the basis. Y is the axis of rotation for roll.

zhatarray_like

Z-component of the basis. Z is the axis of rotation for yaw.

Returns:
xhat, yhat, zhatarray_like

New basis vectors.