MCPcopy Create free account
hub / github.com/Profactor/cv-plot / untransform

Method untransform

CvPlot/examples/examples_core.cpp:317–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 return{ std::cos(p.x)*p.y,std::sin(p.x)*p.y };
316 }
317 cv::Point2d untransform(const cv::Point2d &p)const override {
318 return{ std::atan2(p.y, p.x), std::sqrt(p.x *p.x + p.y*p.y) };
319 }
320 cv::Rect2d transformBoundingRect(const cv::Rect2d &r)const override{
321 double radius = r.y + r.height;
322 return cv::Rect2d(-radius, -radius, 2 * radius, 2 * radius);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected