Add determinant() to the kernel archetype as well...

This commit is contained in:
Sylvain Pion 2006-08-02 19:14:03 +00:00
parent 6ee4e656e7
commit f84245c8d1
2 changed files with 38 additions and 0 deletions

View File

@ -648,6 +648,34 @@ public:
{ FT val = 0; return val; }
};
template <typename K>
class Compute_determinant_2
{
typedef typename K::FT FT;
typedef typename K::Vector_2 Vector_2;
public:
typedef FT result_type;
typedef Arity_tag< 2 > Arity;
FT
operator()(const Vector_2& v, const Vector_2& w) const
{ FT val = 0; return val; }
};
template <typename K>
class Compute_determinant_3
{
typedef typename K::FT FT;
typedef typename K::Vector_3 Vector_3;
public:
typedef FT result_type;
typedef Arity_tag< 3 > Arity;
FT
operator()(const Vector_3& v, const Vector_3& w, const Vector_3& t) const
{ FT val = 0; return val; }
};
template <typename K>
class Compute_scalar_product_2
{

View File

@ -227,6 +227,16 @@ CGAL_Kernel_cons(Compute_area_3,
compute_area_3_object)
#endif
#if !defined(CGAL_CA_LIMITED_INTERFACE) || defined(CGAL_CA_COMPUTE_DETERMINANT_2)
CGAL_Kernel_cons(Compute_determinant_2,
compute_determinant_2_object)
#endif
#if !defined(CGAL_CA_LIMITED_INTERFACE) || defined(CGAL_CA_COMPUTE_DETERMINANT_3)
CGAL_Kernel_cons(Compute_determinant_3,
compute_determinant_3_object)
#endif
#if !defined(CGAL_CA_LIMITED_INTERFACE) || \
defined(CGAL_CA_COMPUTE_SCALAR_PRODUCT_2)
CGAL_Kernel_cons(Compute_scalar_product_2,