template<typename T, vtkm::IdComponent Size>
class vtkm::Vec< T, Size >
A short fixed-length array.
The Vec
templated class holds a short array of values of a size and type specified by the template arguments.
The Vec
class is most often used to represent vectors in the mathematical sense as a quantity with a magnitude and direction. Vectors are, of course, used extensively in computational geometry as well as physical simulations. The Vec
class can be (and is) repurposed for more general usage of holding a fixed-length sequence of objects.
There is no real limit to the size of the sequence (other than the largest number representable by vtkm::IdComponent), but the Vec
class is really designed for small sequences (seldom more than 10).