Added functors to archetype kernel

This commit is contained in:
Andreas Fabri 2008-01-19 15:11:50 +00:00
parent 9f5bad92a1
commit 7f258ba048
1 changed files with 28 additions and 0 deletions

View File

@ -1405,6 +1405,20 @@ public:
{ return Point_3(); }
};
template <typename K>
class Construct_normal_3
{
typedef typename K::Point_3 Point_3;
typedef typename K::Vector_3 Vector_3;
public:
typedef Vector_3 result_type;
typedef Arity_tag< 2 > Arity;
Vector_3
operator()(const Point_3&, const Point_3&, const Point_3&) const
{ return Vector_3(); }
};
template <typename K>
class Construct_object_2
{
@ -2163,6 +2177,20 @@ public:
{ return Triangle_3(); }
};
template <typename K>
class Construct_unit_normal_3
{
typedef typename K::Point_3 Point_3;
typedef typename K::Vector_3 Vector_3;
public:
typedef Vector_3 result_type;
typedef Arity_tag< 2 > Arity;
Vector_3
operator()(const Point_3&, const Point_3&, const Point_3&) const
{ return Vector_3(); }
};
template <typename K>
class Construct_vector_2
{