Class: BulldogPhysics::Particles::ParticleForceRegistration
- Inherits:
-
Object
- Object
- BulldogPhysics::Particles::ParticleForceRegistration
- 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
-
#particle ⇒ Object
Returns the value of attribute particle.
-
#particle_force_generator ⇒ Object
Returns the value of attribute particle_force_generator.
Instance Method Summary collapse
-
#initialize ⇒ ParticleForceRegistration
constructor
A new instance of ParticleForceRegistration.
Constructor Details
#initialize ⇒ ParticleForceRegistration
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
#particle ⇒ Object
Returns the value of attribute particle.
6 7 8 |
# File 'lib/Particles/particle_force_registration.rb', line 6 def particle @particle end |
#particle_force_generator ⇒ Object
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 |