Libgvectors is a C++ library for visualizing mathematical vectors. The library provides three fundamental classes for achieving its purpose:
GVector
A class representing a three dimensional vector and providing fundamental operations for vector arithmetic.
VisualVector
Visualizes a GVector. It provides methods for projecting three dimensional vectors on a two dimensional plane.
VectorStore
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.
Installation:
The usual
$ ./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:
Manual
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
pkg-config
Libgvectors comes with a package config file (.pc). You could type for instance
$ cc `pkg-config --cflags --libs libgvectors` example.cc
Autoconf/Automake
If you are using autoconf/automake for your project, then add to your configure.ac file
PKG_CHECK_MODULES(SOMEAPP, libgvectors >= 0.1)
AC_SUBST(SOMEAPP_CFLAGS)
AC_SUBST(SOMEAPP_LIBS)
Product's homepage