Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxContactGraph Class Reference

#include <Solver.h>

Public Member Functions

void color_pairs (const std::vector< std::pair< size_t, size_t > > &pairs, const std::vector< std::shared_ptr< FxEntity > > &entities)
uint32_t color_of_pair (size_t i) const
void group_contacts (const std::vector< uint32_t > &contact_colors, std::vector< uint32_t > &order)
size_t group_count () const
uint32_t group_start (size_t g) const
bool is_overflow_group (size_t g) const
size_t colored_count () const
size_t overflow_count () const

Static Public Attributes

static constexpr uint32_t kMaxColors = 12

Detailed Description

Definition at line 280 of file Solver.h.

Member Function Documentation

◆ color_of_pair()

uint32_t FxContactGraph::color_of_pair ( size_t i) const
inline

Definition at line 294 of file Solver.h.

◆ color_pairs()

void FxContactGraph::color_pairs ( const std::vector< std::pair< size_t, size_t > > & pairs,
const std::vector< std::shared_ptr< FxEntity > > & entities )

◆ colored_count()

size_t FxContactGraph::colored_count ( ) const
inline

Definition at line 309 of file Solver.h.

◆ group_contacts()

void FxContactGraph::group_contacts ( const std::vector< uint32_t > & contact_colors,
std::vector< uint32_t > & order )

◆ group_count()

size_t FxContactGraph::group_count ( ) const
inline

Definition at line 301 of file Solver.h.

◆ group_start()

uint32_t FxContactGraph::group_start ( size_t g) const
inline

Definition at line 302 of file Solver.h.

◆ is_overflow_group()

bool FxContactGraph::is_overflow_group ( size_t g) const
inline

Definition at line 306 of file Solver.h.

◆ overflow_count()

size_t FxContactGraph::overflow_count ( ) const
inline

Definition at line 310 of file Solver.h.

Member Data Documentation

◆ kMaxColors

uint32_t FxContactGraph::kMaxColors = 12
staticconstexpr

Definition at line 284 of file Solver.h.


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