fields.rot_3d# fields.rot_3d(axis, gx, gy, gz, ang)[source]# Rotates the vector [gx,gy,gz] by an angle ang around a specified axis. Parameters: axis (int) – The axis to rotate about. Options are 1,2,3. gx (float) – Vector x component. gy (float) – Vector y component. gz (float) – Vector z component. ang (float) – The angle over which to rotate. Returns: gx (float) – Vector x component. gy (float) – Vector y component. gz (float) – Vector z component.