This scores the angle using information stored in its Angle decorator. The score is based on the difference between the stored ideal angle and the actual angle and scaled by the stiffness. That is stiffness * (angle-ideal_value). The difference is in radians between -pi and +pi; it is the shortest distance from one angle to the other.
Public Member Functions | |
AngleSingletonScore (UnaryFunction *f) | |
Use f to penalize deviations in angle. | |
ContainersTemp | get_input_containers (Particle *) const |
ParticlesTemp | get_input_particles (Particle *) const |
ParticlesList | get_interacting_particles (Particle *) const |
bool | get_is_changed (Particle *p) const |
IMP_SINGLETON_SCORE_BASE (AngleSingletonScore) |