Henry Wong wrote:The error message seems really clear to me. The query variable is a float array -- and you tried to assign an double array to it.
Correct. You should change the assignment to new float. That still would not compile because of the 0.0's - those are doubles. If you change those to 0.0f they become floats and the array can hold them.