Stowy Physics Engine 0.1.0
Loading...
Searching...
No Matches
stw::Simplex Struct Reference

Struct representing the simplest form that can "select" an area in any dimension. More...

#include <Simplex.hpp>

Public Member Functions

 Simplex ()
 
Simplexoperator= (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.
 

Detailed Description

Struct representing the simplest form that can "select" an area in any dimension.

Constructor & Destructor Documentation

◆ Simplex()

stw::Simplex::Simplex ( )
inline

Member Function Documentation

◆ Begin()

std::array< Vector2, Simplex::MAX_SIZE >::const_iterator stw::Simplex::Begin ( ) const

◆ End()

std::array< Vector2, Simplex::MAX_SIZE >::const_iterator stw::Simplex::End ( ) const

◆ IncrementSize()

void stw::Simplex::IncrementSize ( )

Increments the size of the simplex with a max at MAX_SIZE.

◆ operator=()

Simplex & stw::Simplex::operator= ( std::initializer_list< Vector2 > list)

◆ operator[]()

Vector2 stw::Simplex::operator[] ( std::size_t i) const

◆ PushFront()

void stw::Simplex::PushFront ( Vector2 point)

Adds a point in the simplex.

Parameters
pointPoint to add in the simplex.
Here is the call graph for this function:

◆ Size()

std::size_t stw::Simplex::Size ( ) const

Gets the size of the array.

Returns
The size of the array.

Member Data Documentation

◆ MAX_SIZE

constexpr unsigned long long stw::Simplex::MAX_SIZE = 3ull
staticconstexpr

The max size of this simplex.


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