	@Test
	public void testScalarProduct()
	{

		Vector2 vec1 = Vector2.fromXY(1, 3);
		Vector2 vec2 = Vector2.fromXY(-4, 2);
		double result = vec1.scalarProduct(vec2);
		assertEquals(2f, result, ACCURACY);
		
		vec1 = Vector2.fromXY(1, 3);
		vec2 = Vector2.fromXY(0, 0);
		result = vec1.scalarProduct(vec2);
		assertEquals(0f, result, ACCURACY);
		
		vec1 = Vector2.fromXY(2.1f, 3);
		vec2 = Vector2.fromXY(10f, 1.5);
		result = vec1.scalarProduct(vec2);
		assertEquals(25.5f, result, ACCURACY);
	}