|
Balance Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface to observe and manipulate one end of a line. It lets you getSlope() and moveEnd(int).
Copyright (c) 1998 Massachusetts Institute of Technology
Method Summary | |
float |
getSlope()
getSlope() returns a float representing the slope of the line as seen from our point of view; a positive slope means we're at the lower end of the line. |
int |
moveEnd(int distance)
moveEnd takes an int representing how far to move the end. |
Method Detail |
public float getSlope()
public int moveEnd(int distance)
|
Balance Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |