blankart/src/k_cluster.hpp
Anonimus 6788db93b4 Add clustering
Using a DBSCAN-based algorithm, this gathers "player clusters" to determine the most packed area in the race.
2025-06-29 01:30:02 -04:00

18 lines
No EOL
457 B
C++

#include "doomdef.h"
#include "d_player.h"
#include "m_fixed.h"
#ifdef __cplusplus
extern "C"
{
#endif
extern player_t *closesttocluster;
INT32 K_CountNeighboringPlayersByDistance(player_t *sourcePlayer, fixed_t eps, vector3_t *out, void *nodevec);
INT32 K_CountNeighboringPlayersByDTF(player_t *sourcePlayer, fixed_t eps, vector3_t *out);
INT32 K_CountNeighboringPlayers(player_t *sourcePlayer, fixed_t eps, vector3_t *out);
#ifdef __cplusplus
}
#endif