CGAL 4.14  Principal Component Analysis

template<typename InputIterator >  
Deduced  CGAL::bounding_box (InputIterator first, InputIterator beyond) 
The function bounding_box() computes the axisaligned bounding box of a set of 2D or 3D points. More...  
template<typename InputIterator , typename K >  
Deduced  CGAL::bounding_box (InputIterator first, InputIterator beyond, const K &k) 
computes the bounding box of a nonempty set of 2D or 3D points. More...  
Deduced CGAL::bounding_box  (  InputIterator  first, 
InputIterator  beyond  
) 
#include <CGAL/bounding_box.h>
The function bounding_box()
computes the axisaligned bounding box of a set of 2D or 3D points.
The bounding box is returned either as an iso rectangle in 2D or as an iso cuboid in 3D, the type being deduced automatically from the value type of the iterator range.
There is a set of overloaded bounding_box functions for 2D and 3D points. The user can also optionally pass an explicit kernel, in case the default, based on Kernel_traits
is not sufficient. The dimension is also deduced automatically.
computes the bounding box of a nonempty set of 2D or 3D points.
K::Iso_rectangle_2
or K::Iso_cuboid_3
, depending on the dimension of the input values, where K
is Deduced CGAL::bounding_box  (  InputIterator  first, 
InputIterator  beyond,  
const K &  k  
) 
#include <CGAL/bounding_box.h>
computes the bounding box of a nonempty set of 2D or 3D points.
K::Iso_rectangle_2
or K::Iso_cuboid_3
, depending on the dimension of the input values.