Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks for suggestions! When amalgamating coordinates, I want all of them take the same type (either int or double). But if I use double for x and y, there will be lots of conversions to int. I wonder if it will make the program slow.