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

Method operator/

src/openpose/core/rectangle.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195
196 template<typename T>
197 Rectangle<T> Rectangle<T>::operator/(const T value) const
198 {
199 try
200 {
201 return Rectangle<T>{T(x / value), T(y / value), T(width / value), T(height / value)};
202 }
203 catch (const std::exception& e)
204 {
205 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
206 return Rectangle<T>{};
207 }
208 }
209
210 COMPILE_TEMPLATE_BASIC_TYPES_STRUCT(Rectangle);
211

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected