# | Line 52 | Line 52 | namespace oopse { | |
---|---|---|
52 | } | |
53 | ||
54 | double DipoleCorrFunc::calcCorrVal(int frame1, int frame2, StuntDouble* sd1, StuntDouble* sd2) { | |
55 | < | Vector3d v1 =sd1->getVel(frame1); |
56 | < | Vector3d v2 = sd2->getVel(frame2); |
55 | > | Vector3d v1 =sd1->getElectroFrame(frame1).getColumn(2); |
56 | > | Vector3d v2 = sd2->getElectroFrame(frame2).getColumn(2); |
57 | ||
58 | < | return dot(v1, v2); |
58 | > | return dot(v1, v2)/(v1.length()*v2.length()); |
59 | } | |
60 | ||
61 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |