Add Angle_3(Vector_3, Vector_3)

...by similarity with Angle_2.
This commit is contained in:
Laurent Rineau
2014-05-21 12:18:49 +02:00
parent 191b01b13b
commit 6500bd907f
6 changed files with 47 additions and 4 deletions
@@ -68,10 +68,17 @@ namespace CartesianKernelFunctors {
template <typename K>
class Angle_3
{
typedef typename K::Point_3 Point_3;
typedef typename K::Point_3 Point_3;
typedef typename K::Vector_3 Vector_3;
public:
typedef typename K::Angle result_type;
typedef typename K::Angle result_type;
result_type
operator()(const Vector_3& u, const Vector_3& v) const
{
return angleC3(u.x(), u.y(), u.z(),
v.x(), v.y(), v.z());
}
result_type
operator()(const Point_3& p, const Point_3& q, const Point_3& r) const
{