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.
1 parent 86e5e8d commit ac9f8c1Copy full SHA for ac9f8c1
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