From 8614cc908731ca86271e81257099f6e96ddb7c1e Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Sat, 15 Jan 2011 23:49:10 +0200 Subject: [PATCH] Fix CrossProduct(). --- geometry/point2d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry/point2d.hpp b/geometry/point2d.hpp index 5b6f819879..6715c3d158 100644 --- a/geometry/point2d.hpp +++ b/geometry/point2d.hpp @@ -156,7 +156,7 @@ namespace m2 template T const CrossProduct(Point const & a, Point const & b) { - return a.y * b.x - a.x * b.y; + return a.x * b.y - a.y * b.x; } template