calc-x ( slope y point -- x )


Vocabulary
ui.gadgets.charts.lines.private

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

Inputs
slopean object
yan object
pointan object


Outputs
xan object


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

USING: ui.gadgets.charts.lines.private prettyprint ; 0.5 10 { 0 0 } calc-x .
20.0


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

Definition