We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 126b0d8 + ac9f8c1 commit 84c29dcCopy full SHA for 84c29dc
modules/core/include/opencv2/core/types.hpp
@@ -1192,7 +1192,7 @@ _Tp Point_<_Tp>::dot(const Point_& pt) const
1192
template<typename _Tp> inline
1193
double Point_<_Tp>::ddot(const Point_& pt) const
1194
{
1195
- return (double)x*pt.x + (double)y*pt.y;
+ return (double)x*(double)(pt.x) + (double)y*(double)(pt.y);
1196
}
1197
1198
0 commit comments