group1.model
Class XYPair

java.lang.Object
  extended by group1.model.XYPair

public class XYPair
extends java.lang.Object

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

XYPair

public XYPair()
Default constructor.


XYPair

public XYPair(double x_val,
              double y_val)
Normal constructor.

Parameters:
x_val - The x-value.
y_val - The y-value.
Method Detail

getX

public double getX()
Returns the x value.

Returns:
The x-value.

getY

public double getY()
Returns the y value.

Returns:
The y-value.

setX

public void setX(double x_val)
Sets the x value.

Parameters:
x_val - The x value.

setY

public void setY(double y_val)
Sets the y value.

Parameters:
y_val - The y value.