Stowy Physics Engine 0.1.0
|
Struct representing the simplest form that can "select" an area in any dimension. More...
#include <Simplex.hpp>
Public Member Functions | |
Simplex () | |
Simplex & | operator= (std::initializer_list< Vector2 > list) |
Vector2 | operator[] (std::size_t i) const |
void | PushFront (Vector2 point) |
Adds a point in the simplex. | |
std::size_t | Size () const |
Gets the size of the array. | |
std::array< Vector2, MAX_SIZE >::const_iterator | Begin () const |
std::array< Vector2, MAX_SIZE >::const_iterator | End () const |
void | IncrementSize () |
Increments the size of the simplex with a max at MAX_SIZE. | |
Static Public Attributes | |
static constexpr unsigned long long | MAX_SIZE = 3ull |
The max size of this simplex. | |
Struct representing the simplest form that can "select" an area in any dimension.
|
inline |
std::array< Vector2, Simplex::MAX_SIZE >::const_iterator stw::Simplex::Begin | ( | ) | const |
std::array< Vector2, Simplex::MAX_SIZE >::const_iterator stw::Simplex::End | ( | ) | const |
void stw::Simplex::IncrementSize | ( | ) |
Increments the size of the simplex with a max at MAX_SIZE.
Vector2 stw::Simplex::operator[] | ( | std::size_t | i | ) | const |
void stw::Simplex::PushFront | ( | Vector2 | point | ) |
Adds a point in the simplex.
point | Point to add in the simplex. |
std::size_t stw::Simplex::Size | ( | ) | const |
Gets the size of the array.
|
staticconstexpr |
The max size of this simplex.