cartesianToSFML for array