template<typename Vec3>
hub::particles::PointParticle struct

Public types

using Vector = Vec3
3D vector type.
using Scalar = typename Vector::value_type
Floating point like type;.

Constructors, destructors, conversion operators

PointParticle() defaulted
PointParticle(PointParticle const&) defaulted
PointParticle(PointParticle&&) defaulted
PointParticle(Scalar mass, Vector position, Vector velocity) explicit
Construct a new Point Particle object.
PointParticle(Scalar mass, Scalar px = 0, Scalar py = 0, Scalar pz = 0, Scalar vx = 0, Scalar vy = 0, Scalar vz = 0) explicit
Construct a new Point Particle object.

Public functions

auto operator=(PointParticle const&) -> PointParticle& defaulted
auto operator=(PointParticle&&) -> PointParticle& defaulted

Public variables

Vector pos
Position of the particle.
Vector vel
Velocity of the particle.
Scalar mass
Mass of the particle.

Function documentation

template<typename Vec3>
hub::particles::PointParticle<Vec3>::PointParticle() defaulted

Default constructor.

template<typename Vec3>
hub::particles::PointParticle<Vec3>::PointParticle(PointParticle const&) defaulted

Default copy constructor.

template<typename Vec3>
hub::particles::PointParticle<Vec3>::PointParticle(PointParticle&&) defaulted

Default move constructor

template<typename Vec3>
hub::particles::PointParticle<Vec3>::PointParticle(Scalar mass, Vector position, Vector velocity) explicit

Construct a new Point Particle object.

Parameters
mass in The mass of the particle
position in The 3D vector position of the particle
velocity in The 3D vector velocity of the particle

template<typename Vec3>
hub::particles::PointParticle<Vec3>::PointParticle(Scalar mass, Scalar px = 0, Scalar py = 0, Scalar pz = 0, Scalar vx = 0, Scalar vy = 0, Scalar vz = 0) explicit

Construct a new Point Particle object.

Parameters
mass in The mass fof the particle
px in The x-component of the position vector
py in The y-component of the position vector
pz in The z-component of the position vector
vx in The x-component of the velocity vector
vy in The y-component of the velocity vector
vz in The z-component of the velocity vector

template<typename Vec3>
PointParticle& hub::particles::PointParticle<Vec3>::operator=(PointParticle const&) defaulted

Default copy assignment operator

template<typename Vec3>
PointParticle& hub::particles::PointParticle<Vec3>::operator=(PointParticle&&) defaulted

Default move assignment operator