--- trunk/src/applications/staticProps/GofRAngle.cpp 2005/02/17 16:21:07 360 +++ trunk/src/applications/staticProps/GofRAngle.cpp 2005/02/21 16:57:22 373 @@ -105,7 +105,7 @@ void GofRAngle::collectHistogram(StuntDouble* sd1, Stu Vector3d pos1 = sd1->getPos(); Vector3d pos2 = sd2->getPos(); - Vector3d r12 = pos1 - pos2; + Vector3d r12 = pos2 - pos1; currentSnapshot_->wrapVector(r12); double distance = r12.length(); @@ -152,7 +152,7 @@ double GofRTheta::evaluateAngle(StuntDouble* sd1, Stun double GofRTheta::evaluateAngle(StuntDouble* sd1, StuntDouble* sd2) { Vector3d pos1 = sd1->getPos(); Vector3d pos2 = sd2->getPos(); - Vector3d r12 = pos1 - pos2; + Vector3d r12 = pos2 - pos1; currentSnapshot_->wrapVector(r12); r12.normalize(); Vector3d dipole = sd1->getElectroFrame().getColumn(2); @@ -162,7 +162,7 @@ double GofROmega::evaluateAngle(StuntDouble* sd1, Stun double GofROmega::evaluateAngle(StuntDouble* sd1, StuntDouble* sd2) { Vector3d v1 = sd1->getElectroFrame().getColumn(2); - Vector3d v2 = sd1->getElectroFrame().getColumn(2); + Vector3d v2 = sd2->getElectroFrame().getColumn(2); v1.normalize(); v2.normalize(); return dot(v1, v2);