|
WaSH Docs
|
Custom vector class for WaSH simulation. More...
#include <vector.hpp>
Public Member Functions | |
| T & | operator[] (int i) |
| const T & | operator[] (int i) const |
| Vec< T, dim > | operator+ (T d) |
| Vec< T, dim > | operator+ (Vec< T, dim > v) |
| void | operator+= (Vec< T, dim > v) |
| Vec< T, dim > | operator- (Vec< T, dim > v) const |
| Vec< T, dim > | operator/ (T d) |
| Vec< T, dim > | operator* (T d) |
| T | magnitude () |
| T | at (const size_t i) const |
| Vec< T, dim > | abs () const |
Public Attributes | |
| std::array< T, dim > | data |
Custom vector class for WaSH simulation.
| T | Datatype of the vector |
| dim | How many elements in the vector WaSH custom vector class |
This class is how we represent vectors in WaSH. It provides a number of basic operations, and is templated on the type of the vector and the dimensionality.
| T | The type of the vector (double/float) |
| dim | The dimensionality of the vector (2/3 typically) |
1.8.14