I just felt the need to share with you a little class I wrote for handling 2D math vectors – Vec2D. It is nothing special, just a simple C++ class that allows you to work with two-dimensional mathematical vectors (or points if you want so). It supports all necessary basic operations you might need.
I recently created the class for a particle filter program I currently work on. Qt’s QVector2D was insufficient for me since it doesn’t support rotations or randomizing a vector with some random noise value, which both is essential to my project.
I hope you enjoy it! If you would like to contribute to the class, please write me to get access to the repository! Thank you!