|
Archicad 29 C++ API
|
#include <GJK.hpp>
Public Types | |
| enum class | CollisionType { UNDEFINED , COLLISION , NO_COLLISION , COLLISION_NOT_FOUND } |
Public Member Functions | |
| operator bool () const | |
| bool | IsCollided () const |
| bool | IsNotFound () const |
| template<typename DistanceType > | |
| bool | IsCloser (DistanceType dist) const |
Static Public Member Functions | |
| static GJKResult | Collision () |
| static GJKResult | NoCollision (const VectorType &support, const VectorType &direction) |
| static GJKResult | NotFound (const VectorType &support, const VectorType &direction) |
The result of the collision detection.
|
strong |
Enumerates all possible results of the GJK algorithm.
|
inlinestatic |
|
inline |
Check if objects are closer than the dist parameter.
| dist | The distance. |
dist parameter.
|
inline |
Check if this class contains a collision.
|
inline |
Check if any collision was found.
|
inlinestatic |
|
inlinestatic |
|
inline |
Check if this class contains a collision.