MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / operator-

Method operator-

src/openpose/core/point.cpp:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169 template<typename T>
170 Point<T> Point<T>::operator-(const Point<T>& point) const
171 {
172 try
173 {
174 return Point<T>{T(x - point.x), T(y - point.y)};
175 }
176 catch (const std::exception& e)
177 {
178 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
179 return Point<T>{};
180 }
181 }
182
183 template<typename T>
184 Point<T>& Point<T>::operator-=(const T value)

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected