|
DubiousEngine
0.2.0
Simple Game Engine
|
The Minkowski Simplex used in GJK. More...
#include <Minkowski_simplex.h>
Public Member Functions | |
| Minkowski_simplex () | |
| Default Constructor. More... | |
| Minkowski_simplex (const Minkowski_vector &start) | |
| Constructor. More... | |
| void | push_back (const Minkowski_vector &v) |
| Add a Minkowski Vector to the simplex. More... | |
| std::tuple< bool, Math::Vector > | build () |
| Find the next point on the simplex. More... | |
| const Minkowski_vector * | v () const |
| accessors More... | |
| int | size () const |
The Minkowski Simplex used in GJK.
The Simplex is the backbone of the GJK algorithm. It is comprised of 2 to 4 points, representing a line, triangle, or tetrahedron.
| Dubious::Physics::Minkowski_simplex::Minkowski_simplex | ( | ) |
Default Constructor.
| Dubious::Physics::Minkowski_simplex::Minkowski_simplex | ( | const Minkowski_vector & | start | ) |
Constructor.
This creates an invalid simplex with only one point. start - [in] the vector to start with
| std::tuple< bool, Math::Vector > Dubious::Physics::Minkowski_simplex::build | ( | ) |
Find the next point on the simplex.
This is the bulk of the work of the Simplex. Finds the direction of the next point and corrects the Simplex internally.
| void Dubious::Physics::Minkowski_simplex::push_back | ( | const Minkowski_vector & | v | ) |
Add a Minkowski Vector to the simplex.
Simply puts the vector into the... vector. The heavy lifting is done in the build function
| v | - [in] the Minkowski Vector to add |
|
inline |
|
inline |
accessors