/* Author: CPSC 111 Jan 2010
 * Date: Mon Feb 1 2010
 * 
 * Tester class for TestPoint2
 *
 */

public class TestPoint2 {
    public static void main ( String [] args) {
	//Point2 p = new Point2(0,0);
	//Point2 p = new Point2(-10,-20);
	//Point2 p = new Point2(-10,-20);
	Point2 p = new Point2(3.14159265,4.22222222222222222222);
	Point2 q = new Point2(3,4);
	double distance1 = p.distanceBetween(q);
	double distance2 = q.distanceBetween(p);

	System.out.println("from p to q is: " + distance1);
	System.out.println("from q to p is: " + distance2);

	System.out.println("p is this far from origin " + p.distanceToOrigin());
	System.out.println("q is this far from origin " + q.distanceToOrigin());
    }
}
