nanoflann expects ElementType (double over here) arrays for those two, so can't use SGVectors