CGAL 5.5.2 - 2D and 3D Linear Geometry Kernel
|
#include <CGAL/Dimension.h>
An object of the class Dimension_tag
is an empty object which can be used for dispatching functions based on the dimension of an object, as provided by the dim
parameter.
It is useful in cases where it is not more practical to pass the dimension as a template parameter directly.
Example
The following code declares two functions constructing two points at the origin, either in 2D or in 3D.
CGAL::Ambient_dimension<T, K>
CGAL::Feature_dimension<T, K>
CGAL::Dynamic_dimension_tag
Constants | |
static const int | value |
The value of the dim parameter. | |