nngn
Loading...
Searching...
No Matches
CollisionBench Class Referenceabstract

#include <collision.h>

Inheritance diagram for CollisionBench:
Collaboration diagram for CollisionBench:

Public Member Functions

 CollisionBench ()
 

Protected Member Functions

virtual nngn::Colliders make_colliders () const =0
 

Private Slots

void aabb_benchmark ()
 
void aabb_sparse_benchmark ()
 
void bb_benchmark ()
 
void bb_sparse_benchmark ()
 
void sphere_benchmark ()
 
void sphere_sparse_benchmark ()
 

Private Member Functions

nngn::vec3 rnd ()
 
nngn::vec3 rnd_sparse ()
 

Private Attributes

std::mt19937 mt = {}
 
std::uniform_real_distribution< floatpos_dist
 
std::uniform_real_distribution< floatpos_sparse_dist
 
std::uniform_real_distribution< floatrot_dist
 

Constructor & Destructor Documentation

◆ CollisionBench()

CollisionBench::CollisionBench ( )
inline

Member Function Documentation

◆ aabb_benchmark

void CollisionBench::aabb_benchmark ( )
privateslot
Here is the call graph for this function:

◆ aabb_sparse_benchmark

void CollisionBench::aabb_sparse_benchmark ( )
privateslot
Here is the call graph for this function:

◆ bb_benchmark

void CollisionBench::bb_benchmark ( )
privateslot
Here is the call graph for this function:

◆ bb_sparse_benchmark

void CollisionBench::bb_sparse_benchmark ( )
privateslot
Here is the call graph for this function:

◆ make_colliders()

virtual nngn::Colliders CollisionBench::make_colliders ( ) const
protectedpure virtual

Implemented in CollisionComputeBench, and CollisionNativeBench.

Here is the caller graph for this function:

◆ rnd()

nngn::vec3 CollisionBench::rnd ( )
private
Here is the caller graph for this function:

◆ rnd_sparse()

nngn::vec3 CollisionBench::rnd_sparse ( )
private
Here is the caller graph for this function:

◆ sphere_benchmark

void CollisionBench::sphere_benchmark ( )
privateslot
Here is the call graph for this function:

◆ sphere_sparse_benchmark

void CollisionBench::sphere_sparse_benchmark ( )
privateslot
Here is the call graph for this function:

Member Data Documentation

◆ mt

std::mt19937 CollisionBench::mt = {}
private

◆ pos_dist

std::uniform_real_distribution<float> CollisionBench::pos_dist
private

◆ pos_sparse_dist

std::uniform_real_distribution<float> CollisionBench::pos_sparse_dist
private

◆ rot_dist

std::uniform_real_distribution<float> CollisionBench::rot_dist
private

The documentation for this class was generated from the following files: