Libgvectors is a C++ library for visualizing mathematical vectors. The library provides three fundamental classes for achieving its purpose:
A class representing a three dimensional vector and providing fundamental operations for vector arithmetic.
Visualizes a GVector. It provides methods for projecting three dimensional vectors on a two dimensional plane.
Used to store and retrieve visual vectors in a hierarchical manner. It provides proxy methods to certain VisualVector methods used to draw vectors on a screen.
Additionally, it provides an interface to save and load a vector store to and from file.
Libgvectors makes as little as possible assumptions about the graphics library used to draw vectors on a screen and is not bound to any particular graphics library.
$ ./configure ; make ; make install
sequence. See the INSTALL file accompanying the tarball for further details.
Compilation and Linking
There are three ways to do this:
Use the '-I', '-L', and '-l' flags of the compiler, for instance
$ cc -I/usr/local/include/gvectors -L/usr/local/lib -lgvectors example.cc
Libgvectors comes with a package config file (.pc). You could type for instance
$ cc `pkg-config --cflags --libs libgvectors` example.cc
If you are using autoconf/automake for your project, then add to your configure.ac file
PKG_CHECK_MODULES(SOMEAPP, libgvectors >= 0.1)