- qspec. orthonormal ( r , axis=-1 )[source]
-
An orthonormal system with the first vector pointing in the direction of
r.- Parameters:
-
- rarray_like
The first vector of the orthonormal system. Does not have to be normalized.
- axisint
The axis along which the vector components are aligned.
- Returns:
- Raises:
-
- ValueError
If
rdoes not have 3 components along the specifiedaxis.