Function

CGAL::contained_in_simplex

#include <CGAL/predicates_d.h>

template <class ForwardIterator>
bool contained_in_simplex ( ForwardIterator first, ForwardIterator last, Point_d<R> p)
determines whether p is contained in the simplex of the points in A = tuple [first,last).
Precondition: The objects in A are of the same dimension and affinely independent.
Requirement: The value type of ForwardIterator is Point_d<R>.