nngn
|
Classes | |
class | NativeBackend |
Functions | |
void | check_aabb (std::span< AABBCollider > aabb, Output *output) |
void | check_bb (std::span< BBCollider > s, Output *output) |
void | check_sphere (std::span< SphereCollider > s, Output *output) |
void | check_plane (std::span< PlaneCollider > s, Output *output) |
template<typename T > | |
void | check_gravity (std::span< T > s, std::span< nngn::GravityCollider > gravity, Output *output) |
void | check_aabb_bb (std::span< AABBCollider > aabb, std::span< BBCollider > bb, Output *output) |
void | check_aabb_sphere (std::span< AABBCollider > aabb, std::span< SphereCollider > sphere, Output *output) |
void | check_bb_sphere (std::span< BBCollider > bb, std::span< SphereCollider > sphere, Output *output) |
void | check_sphere_plane (std::span< SphereCollider > sphere, std::span< PlaneCollider > plane, Output *output) |
bool | check_bb_fast (const AABBCollider &c0, const AABBCollider &c1) |
constexpr float | overlap (float min0, float max0, float min1, float max1) |
bool | float_eq_zero (float f) |
constexpr nngn::vec2 | rotate (const nngn::vec2 &p, float cos, float sin) |
constexpr std::array< nngn::vec2, 4 > | to_edges (const nngn::vec2 &bl, const nngn::vec2 &tr) |
bool | check_bb_common (const nngn::vec2 &bl, const nngn::vec2 &tr, const std::array< nngn::vec2, 4 > &v1, nngn::vec2 *output) |
bool | check_bb_sphere_common (const nngn::vec2 &c0, const nngn::vec2 &bl0, const nngn::vec2 &tr0, const nngn::vec2 &sc, float sr, nngn::vec2 *output) |
template<typename T , typename U > | |
bool | add_collision (T *c0, U *c1, const nngn::vec3 &v, std::vector< nngn::Collision > *output) |
template<typename T > | |
void | check_gravity (std::span< T > other, std::span< GravityCollider > gravity, Output *output) |
bool anonymous_namespace{native.cpp}::add_collision | ( | T * | c0, |
U * | c1, | ||
const nngn::vec3 & | v, | ||
std::vector< nngn::Collision > * | output ) |
void anonymous_namespace{native.cpp}::check_aabb | ( | std::span< AABBCollider > | aabb, |
Output * | output ) |
void anonymous_namespace{native.cpp}::check_aabb_bb | ( | std::span< AABBCollider > | aabb, |
std::span< BBCollider > | bb, | ||
Output * | output ) |
void anonymous_namespace{native.cpp}::check_aabb_sphere | ( | std::span< AABBCollider > | aabb, |
std::span< SphereCollider > | sphere, | ||
Output * | output ) |
void anonymous_namespace{native.cpp}::check_bb | ( | std::span< BBCollider > | s, |
Output * | output ) |
|
inline |
bool anonymous_namespace{native.cpp}::check_bb_fast | ( | const AABBCollider & | c0, |
const AABBCollider & | c1 ) |
void anonymous_namespace{native.cpp}::check_bb_sphere | ( | std::span< BBCollider > | bb, |
std::span< SphereCollider > | sphere, | ||
Output * | output ) |
|
inline |
void anonymous_namespace{native.cpp}::check_gravity | ( | std::span< T > | other, |
std::span< GravityCollider > | gravity, | ||
Output * | output ) |
void anonymous_namespace{native.cpp}::check_gravity | ( | std::span< T > | s, |
std::span< nngn::GravityCollider > | gravity, | ||
Output * | output ) |
void anonymous_namespace{native.cpp}::check_plane | ( | std::span< PlaneCollider > | s, |
Output * | output ) |
void anonymous_namespace{native.cpp}::check_sphere | ( | std::span< SphereCollider > | s, |
Output * | output ) |
void anonymous_namespace{native.cpp}::check_sphere_plane | ( | std::span< SphereCollider > | sphere, |
std::span< PlaneCollider > | plane, | ||
Output * | output ) |
|
constexpr |
|
constexpr |
|
constexpr |