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

Method operator*

src/openpose/core/rectangle.cpp:164–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163 template<typename T>
164 Rectangle<T> Rectangle<T>::operator*(const T value) const
165 {
166 try
167 {
168 return Rectangle<T>{T(x * value), T(y * value), T(width * value), T(height * value)};
169 }
170 catch (const std::exception& e)
171 {
172 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
173 return Rectangle<T>{};
174 }
175 }
176
177 template<typename T>
178 Rectangle<T>& Rectangle<T>::operator/=(const T value)

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected