DubiousEngine
0.2.0
Simple Game Engine
|
A Minkowski Vector used in GJK and EPA. More...
#include <Minkowski_vector.h>
Public Member Functions | |
Minkowski_vector ()=default | |
Default constructor. More... | |
Minkowski_vector (const Math::Vector &v, const Math::Vector &support_a, const Math::Vector &support_b) | |
Useful constructor. More... | |
const Math::Vector & | v () const |
Accessor. More... | |
const Math::Vector & | support_a () const |
Accessor for support A. More... | |
const Math::Vector & | support_b () const |
Accessor for support B. More... | |
A Minkowski Vector used in GJK and EPA.
In the EPA algorithm we need to keep track of the Minkowski Vector, the point on the Minkowski Simplex and Polytope, as well as the support points in global space that corresponds to this point. The bulk of GJK and EPA will only use the v() accessor, but once the contact point is found (on the Minkowski Polytope), the support points will be needed to find that point in global space
|
default |
Default constructor.
|
inline |
Useful constructor.
Keeps track of the point on the Minkowski Simplex/Polytope as well as the support points on A and B that created it
v | - [in] point on the Simplex/Polytope |
support_a | - [in] support from object A |
support_b | - [in] support from object B |
|
inline |
Accessor for support A.
|
inline |
Accessor for support B.
|
inline |
Accessor.
This is the most useful accessor as most of the collision point finding deals with this point