A class representing a Vector.
More...
#include <Vector.hpp>
|
| Vector (T value=T()) |
|
template<typename A , typename B , typename... Types> |
| Vector (A a, B b, Types...values) |
|
T & | operator[] (std::size_t i) |
|
constexpr const T & | operator[] (std::size_t i) const |
|
template<std::size_t N, typename T>
class lm::Vector< N, T >
A class representing a Vector.
- Template Parameters
-
N | The vector dimension |
T | The vector type |
template<std::size_t N, typename T>
Construct a vector from a value The value is assigned to each member.
- Parameters
-
value | The value to be assigned. |
template<std::size_t N, typename T>
template<typename A , typename B , typename... Types>
Construct a vector from a batch of values
- Parameters
-
a | The first value |
b | The second value |
values | The remaining values |
template<std::size_t N, typename T>
T& lm::Vector< N, T >::operator[] |
( |
std::size_t |
i | ) |
|
|
inline |
Get a value from the vector
- Parameters
-
- Returns
- A value
template<std::size_t N, typename T>
constexpr const T& lm::Vector< N, T >::operator[] |
( |
std::size_t |
i | ) |
const |
|
inline |
Get a value from the vector
- Parameters
-
- Returns
- A value
The documentation for this class was generated from the following file: