Functions Index :: L :: Line1pt

[<< up one level]

Module:

numeric :: curves2d

Definition:

Line1pt(float x, float x1, float y1, float slope)

Description:

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

Examples:

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

y2 = Line1pt(0, 1, 1, -1) # y = -x + 2 == 2

 

[<< top]