a simple 2D math vector class

Hi everybody!

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.

The class can be downloaded from the tinytall public repositories. For further information, simply have a look at the project’s page – Vec2D.

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!



Leave a Reply

Your email address will not be published. Required fields are marked *