LCS::Vector< T, Size > Struct Template Reference
Struct for vectors. More...
#include <basic.hpp>
Public Member Functions | |
Vector () | |
Vector (const T &x, const T &y) | |
Public Attributes | |
T | x |
T | y |
Detailed Description
template<typename T, unsigned Size = 2>
struct LCS::Vector< T, Size >
Struct for vectors.
This is a struct to represent vectors. It is for vectors in the physical sense, not the STL vectors which are basically dynamic size arrays.
- Template Parameters
-
T Numeric data type of the vector elements. Size Length of the vector.
Constructor & Destructor Documentation
template<typename T, unsigned Size = 2>
|
inline |
Default constructor.
template<typename T, unsigned Size = 2>
|
inline |
Constructor for initializating the vector.
- Parameters
-
x -component of the vector.
y -component of the vector.
Member Data Documentation
template<typename T, unsigned Size = 2>
T LCS::Vector< T, Size >::x |
-component of the vector.
template<typename T, unsigned Size = 2>
T LCS::Vector< T, Size >::y |
-component of the vector.
The documentation for this struct was generated from the following file:
- src/basic.hpp