@Test
	public void dotProductTest() {
		for (int i = 0; i < TESTS; i++) {
			double x1 = rand.nextInt();
			double y1 = rand.nextInt();
			double x2 = rand.nextInt();
			double y2 = rand.nextInt();
			double dot = x1 * x2 + y1 * y2;
			assertEquals(dot, new Vector(x1, y1).dot(new Vector(x2, y2)), PRECISION);
		}
	}