# QVM: Quaternions, Vectors, Matrices

### quat_traits<Q>::scalar_type

    typedef /*user-defined*/ scalar_type;

This is the member type that user-defined (partial) specializations of the quat_traits template define the scalar type of a quaternion type. Valid scalar types are value types that satisfy the scalar requirements.

See also: mag(quat) | mag_sqr(quat) | normalize(quat) | quat_traits | quat_traits<Q>::read_element | quat_traits<Q>::write_element | quat_traits_defaults | rotate(quat,vec,scalar) | rotate_x(quat,scalar) | rotate_y(quat,scalar) | rotate_z(quat,scalar) | scalar | set_identity(quat) | set_rotx(quat,scalar) | set_roty(quat,scalar) | set_rotz(quat,scalar) | set_zero(quat)