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

x
 
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
TNumeric data type of the vector elements.
SizeLength of the vector.

Constructor & Destructor Documentation

template<typename T, unsigned Size = 2>
LCS::Vector< T, Size >::Vector ( )
inline

Default constructor.

template<typename T, unsigned Size = 2>
LCS::Vector< T, Size >::Vector ( const T &  x,
const T &  y 
)
inline

Constructor for initializating the vector.

Parameters
x$x$-component of the vector.
y$y$-component of the vector.

Member Data Documentation

template<typename T, unsigned Size = 2>
T LCS::Vector< T, Size >::x

$x$-component of the vector.

template<typename T, unsigned Size = 2>
T LCS::Vector< T, Size >::y

$y$-component of the vector.


The documentation for this struct was generated from the following file: