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

Method getX

examples/procmon/plot.cc:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int Plot::getX(ssize_t i, ssize_t total) const
103{
104 double x = (width_ - kLeftMargin_ - kRightMargin_) + static_cast<double>(i - total) * ratioX_;
105 return static_cast<int>(x + 0.5) + kLeftMargin_;
106}
107
108int Plot::getY(double value) const
109{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected