Vocabularyui.
gadgets.
charts.
lines.
privateWord descriptionGiven two points on a straight line and an
x coordinate, calculate the
y coordinate at
x on that line.
InputsOutputsExamplesUSING: ui.gadgets.charts.lines.private prettyprint ;
0 { 1 1 } { 5 5 } y-at .
0
USING: ui.gadgets.charts.lines.private prettyprint ;
3 { 0 5 } { 5 5 } y-at .
5
USING: ui.gadgets.charts.lines.private prettyprint ;
12 { 12 50 } { 15 15 } y-at .
50
See alsocalc-line-slope,
calc-x,
calc-yDefinition