|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.XYPair
public class XYPair
A simple class to hold a pair of doubles that represent x and y values. Useful for position, velocity, acceleration, etc.
| Constructor Summary | |
|---|---|
XYPair()
Default constructor. |
|
XYPair(double x_val,
double y_val)
Normal constructor. |
|
| Method Summary | |
|---|---|
double |
getX()
Returns the x value. |
double |
getY()
Returns the y value. |
void |
setX(double x_val)
Sets the x value. |
void |
setY(double y_val)
Sets the y value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XYPair()
public XYPair(double x_val,
double y_val)
x_val - The x-value.y_val - The y-value.| Method Detail |
|---|
public double getX()
public double getY()
public void setX(double x_val)
x_val - The x value.public void setY(double y_val)
y_val - The y value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||