CMGL is C++ Mathematics and Gemotry Libary
It is a library for C++ on GNU/Linux, FreeBSD, Cygwin, Win32, Win_x64
This library provides classes for geometry and linear algebra in 2 and 3 dimensions, and other mathematics related classes.
One of the main target of this library is to simplify the implementation of the very kernel part of a CAD.
This library also provides another class not directly related with geometry which allows the standard error propagation computation in a very simple way.
This library uses C 'double' as the only numeric field for vectorial-spaces.
Geometry entities are divided into concrete (i.e. Point, Segment, Circle) and abstract (i.e. Vector, Versor, Matrix)
Operator overload is used spreadly, to allow a more simple and compact syntax.
Here is the list of main files/parts of CMGL:
cmgl : main file
conic2d : circles, arcs and ellipses in 2d
defs : macro definitions
dxf : export concrete objects in DXF format
linear2d : geometry in 2d
linear3d : geometry in 3d
real : generic functions on real (double) numbers
stats : very simple statistical functions
types : typedefs and similar
vad : error propagation computation
This library uses: http://savannah.nongnu.org/projects/comf
To build cmgl just type as usually:
You may set PREFIX environment variable to specify installation directory.
Please send all bug reports by electronic mail to:
These details are provided for information only. No information here is legal advice and should not be used as such.