# | Line 50 | Line 50 | namespace oopse { | |
---|---|---|
50 | ||
51 | } | |
52 | ||
53 | < | double RCorrFunc::calcCorrVal(int frame1, int frame2, StuntDouble* sd1, StuntDouble* sd2) { |
53 | > | RealType RCorrFunc::calcCorrVal(int frame1, int frame2, StuntDouble* sd1, StuntDouble* sd2) { |
54 | Vector3d r1 =sd1->getPos(frame1); | |
55 | Vector3d r2 = sd2->getPos(frame2); | |
56 | ||
57 | < | return dot(r1, r2); |
57 | > | return (r2-r1).lengthSquare(); |
58 | } | |
59 | ||
60 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |