calc-y ( slope x point -- y )


Vocabulary
ui.gadgets.charts.lines.private

Word description
Given the slope of a line and a random point belonging to that line, calculate the y coordinate corresponding to the given x.

Inputs
slopean object
xan object
pointan object


Outputs
yan object


Examples
USING: ui.gadgets.charts.lines.private prettyprint ; 1 5 { 1 1 } calc-y .
5

USING: ui.gadgets.charts.lines.private prettyprint ; 0.5 20 { 0 0 } calc-y .
10.0


See also
calc-line-slope, y-at, calc-x

Definition