MCPcopy Create free account
hub / github.com/chenshuo/muduo / getY

Method getY

examples/procmon/plot.cc:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int Plot::getY(double value) const
109{
110 return static_cast<int>((1.0 - value) * (height_-2*kMarginY_) + 0.5) + kMarginY_;
111}
112
113muduo::string Plot::toPng()
114{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected