From 2252d5ee0d666308ab5cc7dc5407bc25bfcb2cfe Mon Sep 17 00:00:00 2001 From: John Lambert Date: Mon, 8 Nov 2021 13:23:57 -0500 Subject: [PATCH] fix typo in size of mean vector for Point2Pair means() --- gtsam/geometry/Point2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/geometry/Point2.cpp b/gtsam/geometry/Point2.cpp index 06568e37c..06c32526b 100644 --- a/gtsam/geometry/Point2.cpp +++ b/gtsam/geometry/Point2.cpp @@ -116,7 +116,7 @@ list circleCircleIntersection(Point2 c1, double r1, Point2 c2, Point2Pair means(const std::vector &abPointPairs) { const size_t n = abPointPairs.size(); if (n == 0) throw std::invalid_argument("Point2::mean input Point2Pair vector is empty"); - Point2 aSum(0, 0, 0), bSum(0, 0, 0); + Point2 aSum(0, 0), bSum(0, 0); for (const Point2Pair &abPair : abPointPairs) { aSum += abPair.first; bSum += abPair.second;