# QVM: Quaternions, Vectors, Matrices

### vec_traits<V>::scalar_type

    typedef /*user-defined*/ scalar_type;

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

See also: mag(vec) | mag_sqr(vec) | normalize(vec) | rot_quat | scalar | scalar_cast(quat) | scalar_cast(vec) | set_rot(mat) | set_rot(quat,vec,scalar) | set_zero(vec) | vec_traits | vec_traits<V>::read_element | vec_traits<V>::read_element_idx | vec_traits<V>::write_element | vec_traits<V>::write_element_idx | vec_traits_defaults | zero_quat | zero_vec