Manifold 3.0
Robust geometry
 
Loading...
Searching...
No Matches
Vec

linalg::vec<T,M> defines a fixed-length vector containing exactly M elements of type T. More...

Classes

struct  vec< T, 1 >
 
struct  vec< T, 2 >
 
struct  vec< T, 3 >
 
struct  vec< T, 4 >
 

Detailed Description

linalg::vec<T,M> defines a fixed-length vector containing exactly M elements of type T.

This data structure can be used to store a wide variety of types of data, including geometric vectors, points, homogeneous coordinates, plane equations, colors, texture coordinates, or any other situation where you need to manipulate a small sequence of numbers. As such, vec<T,M> is supported by a set of algebraic and component-wise functions, as well as a set of standard reductions.

vec<T,M>: