MPS-Basic
Loading...
Searching...
No Matches
Neighbor Class Reference

Class for neighbor particle. More...

#include <particle.hpp>

Public Member Functions

 Neighbor (int id, double distance)
 

Public Attributes

int id
 index of the neighbor particle
 
double distance
 distance between the particle and the neighbor particle
 

Detailed Description

Class for neighbor particle.

Definition at line 32 of file particle.hpp.

Constructor & Destructor Documentation

◆ Neighbor()

Neighbor::Neighbor ( int id,
double distance )
inline

Definition at line 38 of file particle.hpp.

38 {
39 this->id = id;
40 this->distance = distance;
41 }
double distance
distance between the particle and the neighbor particle
Definition particle.hpp:36
int id
index of the neighbor particle
Definition particle.hpp:35

Member Data Documentation

◆ id

int Neighbor::id

index of the neighbor particle

Definition at line 35 of file particle.hpp.

◆ distance

double Neighbor::distance

distance between the particle and the neighbor particle

Definition at line 36 of file particle.hpp.


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