package causation.lab; import java.awt.Point; /** *

* This class simply encodes an ordered pair of Points. Note that the * from and to Points are public. *

*/ public class PointPair { /////////////////// Instance Variables /////////////////// public Point from; public Point to; /////////////////// Constructors /////////////////// /** * This creates a PointPair with each Point at (0, 0). */ public PointPair() { this(new Point(0, 0), new Point(0, 0)); } /** * This creates a PointPair with from set to p1, * and to set to p2. * @param p1 The from Point * @param p2 The to Point */ public PointPair(Point p1, Point p2) { this.from = p1; this.to = p2; } }