MCPcopy Index your code
hub / github.com/arduino/Arduino / transformY

Method transformY

app/src/processing/app/SerialPlotter.java:78–80  ·  view source on GitHub ↗
(double rawY, double minY, double rangeY, double height)

Source from the content-addressed store, hash-verified

76 }
77
78 private float transformY(double rawY, double minY, double rangeY, double height) {
79 return (float) (5 + (height - 10) * (1.0 - (rawY - minY) / rangeY));
80 }
81 }
82
83 private class GraphPanel extends JPanel {

Callers 1

paintMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected