Vector class

Was working on a graphics oriented project, for which I created a separate Vector class in C++ (although you can use Boost C++ libraries for the same).

The code is available at:

https://www.dropbox.com/s/ifo9mua3ig6weyq/Vector.cpp

You can create objects of Vec3 with coordinates specified as integers, floats or doubles, as this is a template class for the same.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: