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

Method operator+

src/openpose/core/point.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107 template<typename T>
108 Point<T> Point<T>::operator+(const Point<T>& point) const
109 {
110 try
111 {
112 return Point<T>{T(x + point.x), T(y + point.y)};
113 }
114 catch (const std::exception& e)
115 {
116 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
117 return Point<T>{};
118 }
119 }
120
121 template<typename T>
122 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