Drawing Robot

San Diego

Straight Line Function

Click on the above graphic to view a PDF version of the straight line function.

Click on the above graphic to view a PDF version of the Case I straight line graphic.

Click on the above graphic to view a PDF version of the Case II straight line graphic.

Case I

Case II

The Straight Line Function

The straight line function { straightline( x1, y1, x2, y2, ptsPerMeter ) } is used to plot a straight line on the whiteboard.

 

           x1, y1 are the coordinates for the starting point of the straight line and x2, y2 are the coordinates for the ending point.

 

           ptsPerMeter is the number of points per meter that you want to plot on the straight line.