| 105 |  |  | 
| 106 |  | Vector3d pos1 = sd1->getPos(); | 
| 107 |  | Vector3d pos2 = sd2->getPos(); | 
| 108 | < | Vector3d r12 = pos1 - pos2; | 
| 108 | > | Vector3d r12 = pos2 - pos1; | 
| 109 |  | currentSnapshot_->wrapVector(r12); | 
| 110 |  |  | 
| 111 |  | double distance = r12.length(); | 
| 152 |  | double GofRTheta::evaluateAngle(StuntDouble* sd1, StuntDouble* sd2) { | 
| 153 |  | Vector3d pos1 = sd1->getPos(); | 
| 154 |  | Vector3d pos2 = sd2->getPos(); | 
| 155 | < | Vector3d r12 = pos1 - pos2; | 
| 155 | > | Vector3d r12 = pos2 - pos1; | 
| 156 |  | currentSnapshot_->wrapVector(r12); | 
| 157 |  | r12.normalize(); | 
| 158 |  | Vector3d dipole = sd1->getElectroFrame().getColumn(2); |