ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/primitives/Inversion.hpp
(Generate patch)

Comparing trunk/src/primitives/Inversion.hpp (file contents):
Revision 1955 by gezelter, Thu Dec 5 21:55:42 2013 UTC vs.
Revision 2066 by gezelter, Thu Mar 5 15:22:54 2015 UTC

# Line 95 | Line 95 | namespace OpenMD {
95        
96        //  Calculate the cross products and distances
97        Vector3d A = cross(r31, r43);
98      RealType rA = A.length();
98        Vector3d B = cross(r43, r23);
100      RealType rB = B.length();
101      //Vector3d C = cross(r23, A);
102      //RealType rC = C.length();
99        
100        A.normalize();
101        B.normalize();
106      //C.normalize();
102        
103        //  Calculate the sin and cos
104        RealType cos_phi = dot(A, B) ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines