utility

Functions

angles_from_matrix(rot_matrix)

axis_rotation(axis, angle, vectors[, axis_shift])

Rotate a vector or an array of vectors around an axis in 3d.

axis_rotation_matrix(axis, angle)

Matrix of the rotation around an axis in 3d.

euler_matrix(phi[, theta, psi])

Rotation matrix in 2 and 3 dimensions.

is_inside_bounds(value, params)

Return True if value is contained in params.

is_rotation_matrix(mat[, show_diff])

perpendicular_vector(vec)

Return a vector perpendicular to vec.

rotation_matrix_from_to(from_vec, to_vec)

Return a matrix that rotates from_vec to to_vec in 2d or 3d.

to_lab_sys(vec_in_local_coords, local_sys)

to_local_sys(vec_in_lab_coords, local_sys)

transform_system(principal_vec, …[, matrix])

Transform vectors with either matrix or based on principal_vec.