FlopsKa / libvec2d

Small and efficient two-dimensional vector library written in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/*
 *	libvec2d - Small and efficient two-dimensional vector library written in C++.
 *
 *	Copyright (C) 2011 flopska
 *
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
To use this piece of software compile the source into a library or use it
directly in your source code. To build the library you can use the shipped
Makefile which should work for Linux and Mac OS X.

If you have ideas, suggestions or any other thing you want to tell me:
Please contact me through GitHub (https://github.com/FlopsKa).

Features:
- simple point class wich can calculate the distance between two points
- vector class
	- scalar product
	- add & substract
	- multiply with scalar
	- calculate normal vector from a given vector
	- flip vector
	- mirror vector from a given surface
- easy to use
- scalable

About

Small and efficient two-dimensional vector library written in C++.

License:GNU General Public License v3.0


Languages

Language:C++ 70.3%Language:Objective-C 29.7%