nngn
Loading...
Searching...
No Matches
anonymous_namespace{native.cpp} Namespace Reference

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)
 

Function Documentation

◆ add_collision()

template<typename T , typename U >
bool anonymous_namespace{native.cpp}::add_collision ( T * c0,
U * c1,
const nngn::vec3 & v,
std::vector< nngn::Collision > * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_aabb()

void anonymous_namespace{native.cpp}::check_aabb ( std::span< AABBCollider > aabb,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_aabb_bb()

void anonymous_namespace{native.cpp}::check_aabb_bb ( std::span< AABBCollider > aabb,
std::span< BBCollider > bb,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_aabb_sphere()

void anonymous_namespace{native.cpp}::check_aabb_sphere ( std::span< AABBCollider > aabb,
std::span< SphereCollider > sphere,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_bb()

void anonymous_namespace{native.cpp}::check_bb ( std::span< BBCollider > s,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_bb_common()

bool anonymous_namespace{native.cpp}::check_bb_common ( const nngn::vec2 & bl,
const nngn::vec2 & tr,
const std::array< nngn::vec2, 4 > & v1,
nngn::vec2 * output )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_bb_fast()

bool anonymous_namespace{native.cpp}::check_bb_fast ( const AABBCollider & c0,
const AABBCollider & c1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_bb_sphere()

void anonymous_namespace{native.cpp}::check_bb_sphere ( std::span< BBCollider > bb,
std::span< SphereCollider > sphere,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_bb_sphere_common()

bool anonymous_namespace{native.cpp}::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 )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_gravity() [1/2]

template<typename T >
void anonymous_namespace{native.cpp}::check_gravity ( std::span< T > other,
std::span< GravityCollider > gravity,
Output * output )
Here is the call graph for this function:

◆ check_gravity() [2/2]

template<typename T >
void anonymous_namespace{native.cpp}::check_gravity ( std::span< T > s,
std::span< nngn::GravityCollider > gravity,
Output * output )
Here is the caller graph for this function:

◆ check_plane()

void anonymous_namespace{native.cpp}::check_plane ( std::span< PlaneCollider > s,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_sphere()

void anonymous_namespace{native.cpp}::check_sphere ( std::span< SphereCollider > s,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_sphere_plane()

void anonymous_namespace{native.cpp}::check_sphere_plane ( std::span< SphereCollider > sphere,
std::span< PlaneCollider > plane,
Output * output )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ float_eq_zero()

bool anonymous_namespace{native.cpp}::float_eq_zero ( float f)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ overlap()

float anonymous_namespace{native.cpp}::overlap ( float min0,
float max0,
float min1,
float max1 )
constexpr
Here is the caller graph for this function:

◆ rotate()

nngn::vec2 anonymous_namespace{native.cpp}::rotate ( const nngn::vec2 & p,
float cos,
float sin )
constexpr

◆ to_edges()

std::array< nngn::vec2, 4 > anonymous_namespace{native.cpp}::to_edges ( const nngn::vec2 & bl,
const nngn::vec2 & tr )
constexpr
Here is the caller graph for this function: