Functions Index :: L :: Line

[<< up one level]

Module:

numeric :: curves2d

Definition:

Line(float x, float slope, float intercept)

Description:

Returns the y-value of x so that the point (x,y) lies on a line defined by its slope and intercept.

Examples:

y1 = Line(2, 1, 0) # y = 1x + 0 = x == 2

y2 = Line(2, 0.5, 4) # y = 0.5x + 4 == 5

 

[<< top]