# HG changeset patch # User Nicolas Saunier # Date 1307632724 14400 # Node ID f88a19695bba8e37652f1780d7a2530d32ac81a7 # Parent 626560624d5538e7f2efcb944e954ea179d781ff added inner product diff -r 626560624d55 -r f88a19695bba python/moving.py --- a/python/moving.py Mon Jun 06 18:06:01 2011 -0400 +++ b/python/moving.py Thu Jun 09 11:18:44 2011 -0400 @@ -164,9 +164,15 @@ @staticmethod def dot(p1, p2): + 'Scalar product' return p1.x*p2.x+p1.y*p2.y @staticmethod + def inner(p1, p2): + 'Inner product' + return p1.x*p2.y-p1.y*p2.x + + @staticmethod def distanceNorm2(p1, p2): return (p1-p2).norm2()