nngn
Loading...
Searching...
No Matches
native.cpp File Reference
#include <algorithm>
#include "collision/collision.h"
#include "math/math.h"
#include "timing/profile.h"
#include "utils/log.h"
Include dependency graph for native.cpp:

Classes

class  anonymous_namespace{native.cpp}::NativeBackend
 

Namespaces

namespace  anonymous_namespace{native.cpp}
 
namespace  nngn
 

Typedefs

using Input = Colliders::Backend::Input
 
using Output = Colliders::Backend::Output
 

Functions

void anonymous_namespace{native.cpp}::check_aabb (std::span< AABBCollider > aabb, Output *output)
 
void anonymous_namespace{native.cpp}::check_bb (std::span< BBCollider > s, Output *output)
 
void anonymous_namespace{native.cpp}::check_sphere (std::span< SphereCollider > s, Output *output)
 
void anonymous_namespace{native.cpp}::check_plane (std::span< PlaneCollider > s, Output *output)
 
template<typename T >
void anonymous_namespace{native.cpp}::check_gravity (std::span< T > s, std::span< nngn::GravityCollider > gravity, 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_sphere (std::span< BBCollider > bb, std::span< SphereCollider > sphere, Output *output)
 
void anonymous_namespace{native.cpp}::check_sphere_plane (std::span< SphereCollider > sphere, std::span< PlaneCollider > plane, Output *output)
 
bool anonymous_namespace{native.cpp}::check_bb_fast (const AABBCollider &c0, const AABBCollider &c1)
 
constexpr float anonymous_namespace{native.cpp}::overlap (float min0, float max0, float min1, float max1)
 
bool anonymous_namespace{native.cpp}::float_eq_zero (float f)
 
constexpr nngn::vec2 anonymous_namespace{native.cpp}::rotate (const nngn::vec2 &p, float cos, float sin)
 
constexpr std::array< nngn::vec2, 4 > anonymous_namespace{native.cpp}::to_edges (const nngn::vec2 &bl, const nngn::vec2 &tr)
 
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)
 
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)
 
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)
 
template<typename T >
void anonymous_namespace{native.cpp}::check_gravity (std::span< T > other, std::span< GravityCollider > gravity, Output *output)
 

Typedef Documentation

◆ Input

using Input = Colliders::Backend::Input

◆ Output

using Output = Colliders::Backend::Output