@Test
	public void translateTest() {
		for (int i = 0; i < TESTS; i++) {
			double x1 = rand.nextInt();
			double y1 = rand.nextInt();
			double x2 = rand.nextInt();
			double y2 = rand.nextInt();
			Point p1 = new Point(x1, y1);
			Point p2 = new Point(x2, y2);
			p1 = p1.translate(p2);
			assertEquals(x1 + x2, p1.getX(), PRECISION);
			assertEquals(y1 + y2, p1.getY(), PRECISION);
			p1 = new Point(x1, y1);
			p1 = p1.translate(x2, y2);
			assertEquals(x1 + x2, p1.getX(), PRECISION);
			assertEquals(y1 + y2, p1.getY(), PRECISION);
		}
	}