# QVM: Quaternions, Vectors, Matrices

### vec_traits<Vector>::dim

    static int const dim = /*user-defined*/;

This member of user-defined (partial) specializations of the vec_traits template must be a compile-time integer constant greater than zero that defines the size (number of elements, or dimension) of a user-defined vector type.

See also: assign(vec,vec) | cmp(vec,vec) | convert_to(vec) | cross | deduce_vec | deduce_vec2 | dot(vec,vec) | operator!=(vec,vec) | operator*(mat,vec) | operator*(quat,vec) | operator*(vec,mat) | operator+(vec,vec) | operator+=(vec,vec) | operator-(vec,vec) | operator-=(vec,vec) | operator==(vec,vec) | rot_mat | rot_quat | rotate(mat) | rotate(quat,vec,scalar) | SFINAE/enable_if | set_rot(mat) | set_rot(quat,vec,scalar) | set_zero(vec) | transform_point | transform_vector | vec_traits | vec_traits_defaults