#include <opennurbs_plus_particle.h>
◆ ON_Particle() [1/2]
ON_ParticleSystem::ON_Particle::ON_Particle |
( |
| ) |
|
The default constructor does not initialize the values of the m_mass, m_position m_velocity and m_force.
It sets m_particle_id = 0 and m_context = 0;
◆ ON_Particle() [2/2]
ON_ParticleSystem::ON_Particle::ON_Particle |
( |
const ON_Particle & |
src | ) |
|
Remarks: The copy constructor copies the values of every field including m_context and m_particle_id.
◆ DistanceMoved()
double ON_ParticleSystem::ON_Particle::DistanceMoved |
( |
| ) |
const |
Returns: The distance from the previous position to the current position. If either the previous or current positions are unset, then ON_UNSET_VALUE is returned.
◆ IsFixed()
bool ON_ParticleSystem::ON_Particle::IsFixed |
( |
| ) |
const |
◆ operator=()
Remarks: The operator= copies the values of every field except m_particle_id, which is left unchanged.
◆ ON_ParticleSystem
◆ m_context
ON__UINT_PTR ON_ParticleSystem::ON_Particle::m_context |
each application can use m_context as it sees fit.
◆ m_current_state
current mass, position, and whatever else this system cares about
◆ m_particle_id
const unsigned int ON_ParticleSystem::ON_Particle::m_particle_id |
◆ m_previous_state
previous mass, position, and whatever else this system cares about