Class: BulldogPhysics::Particles::ParticleForceRegistration

Inherits:
Object
  • Object
show all
Defined in:
lib/Particles/particle_force_registration.rb

Overview

Keeps track of one force generator and the particle it applies to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParticleForceRegistration

Returns a new instance of ParticleForceRegistration.



8
9
10
11
# File 'lib/Particles/particle_force_registration.rb', line 8

def initialize()
  @particle = Particle.new
  @particle_force_generator = ParticleForceGenerator.new
end

Instance Attribute Details

#particleObject

Returns the value of attribute particle.



6
7
8
# File 'lib/Particles/particle_force_registration.rb', line 6

def particle
  @particle
end

#particle_force_generatorObject

Returns the value of attribute particle_force_generator.



6
7
8
# File 'lib/Particles/particle_force_registration.rb', line 6

def particle_force_generator
  @particle_force_generator
end