mirror of https://github.com/CGAL/cgal
Difference_of_points_d.
This commit is contained in:
parent
1c8dd2c1e1
commit
86de7491fd
|
|
@ -72,6 +72,7 @@ template <class Base_> struct Kernel_d_interface : public Base_ {
|
||||||
typedef typename Get_functor<Base, Vector_to_point_tag>::type Vector_to_point_d;
|
typedef typename Get_functor<Base, Vector_to_point_tag>::type Vector_to_point_d;
|
||||||
typedef typename Get_functor<Base, Scaled_vector_tag>::type Scaled_vector_d;
|
typedef typename Get_functor<Base, Scaled_vector_tag>::type Scaled_vector_d;
|
||||||
typedef typename Get_functor<Base, Difference_of_vectors_tag>::type Difference_of_vectors_d;
|
typedef typename Get_functor<Base, Difference_of_vectors_tag>::type Difference_of_vectors_d;
|
||||||
|
typedef typename Get_functor<Base, Difference_of_points_tag>::type Difference_of_points_d;
|
||||||
typedef typename Get_functor<Base, Construct_ttag<Point_tag> >::type Construct_point_d;
|
typedef typename Get_functor<Base, Construct_ttag<Point_tag> >::type Construct_point_d;
|
||||||
typedef typename Get_functor<Base, Construct_ttag<Vector_tag> >::type Construct_vector_d;
|
typedef typename Get_functor<Base, Construct_ttag<Vector_tag> >::type Construct_vector_d;
|
||||||
typedef typename Get_functor<Base, Construct_ttag<Segment_tag> >::type Construct_segment_d;
|
typedef typename Get_functor<Base, Construct_ttag<Segment_tag> >::type Construct_segment_d;
|
||||||
|
|
@ -176,6 +177,7 @@ template <class Base_> struct Kernel_d_interface : public Base_ {
|
||||||
Vector_to_point_d vector_to_point_d_object()const{ return Vector_to_point_d(*this); }
|
Vector_to_point_d vector_to_point_d_object()const{ return Vector_to_point_d(*this); }
|
||||||
Scaled_vector_d scaled_vector_d_object()const{ return Scaled_vector_d(*this); }
|
Scaled_vector_d scaled_vector_d_object()const{ return Scaled_vector_d(*this); }
|
||||||
Difference_of_vectors_d difference_of_vectors_d_object()const{ return Difference_of_vectors_d(*this); }
|
Difference_of_vectors_d difference_of_vectors_d_object()const{ return Difference_of_vectors_d(*this); }
|
||||||
|
Difference_of_points_d difference_of_points_d_object()const{ return Difference_of_points_d(*this); }
|
||||||
Affine_rank_d affine_rank_d_object()const{ return Affine_rank_d(*this); }
|
Affine_rank_d affine_rank_d_object()const{ return Affine_rank_d(*this); }
|
||||||
Affinely_independent_d affinely_independent_d_object()const{ return Affinely_independent_d(*this); }
|
Affinely_independent_d affinely_independent_d_object()const{ return Affinely_independent_d(*this); }
|
||||||
Linear_base_d linear_base_d_object()const{ return Linear_base_d(*this); }
|
Linear_base_d linear_base_d_object()const{ return Linear_base_d(*this); }
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ void test2(){
|
||||||
typedef typename K1::Squared_length_d SL;
|
typedef typename K1::Squared_length_d SL;
|
||||||
typedef typename K1::Scalar_product_d SP;
|
typedef typename K1::Scalar_product_d SP;
|
||||||
typedef typename K1::Difference_of_vectors_d DV;
|
typedef typename K1::Difference_of_vectors_d DV;
|
||||||
|
typedef typename K1::Difference_of_points_d DP;
|
||||||
|
|
||||||
CGAL_USE_TYPE(AT);
|
CGAL_USE_TYPE(AT);
|
||||||
CGAL_USE_TYPE(D);
|
CGAL_USE_TYPE(D);
|
||||||
|
|
@ -174,6 +175,7 @@ void test2(){
|
||||||
SL sl Kinit(squared_length_d_object);
|
SL sl Kinit(squared_length_d_object);
|
||||||
SP spr Kinit(scalar_product_d_object);
|
SP spr Kinit(scalar_product_d_object);
|
||||||
DV dv Kinit(difference_of_vectors_d_object);
|
DV dv Kinit(difference_of_vectors_d_object);
|
||||||
|
DP dp Kinit(difference_of_points_d_object);
|
||||||
|
|
||||||
CGAL_USE(bc);
|
CGAL_USE(bc);
|
||||||
CGAL_USE(pol);
|
CGAL_USE(pol);
|
||||||
|
|
@ -233,6 +235,7 @@ void test2(){
|
||||||
P x4=cp(0,0);
|
P x4=cp(0,0);
|
||||||
P x5=cp(0,-1);
|
P x5=cp(0,-1);
|
||||||
P tab2[]={x1,x2,x3,x4};
|
P tab2[]={x1,x2,x3,x4};
|
||||||
|
assert(dp(x1,x2)[1]==2);
|
||||||
assert(po(tab2+0,tab2+3)==CGAL::COUNTERCLOCKWISE);
|
assert(po(tab2+0,tab2+3)==CGAL::COUNTERCLOCKWISE);
|
||||||
assert(sos(tab2+0,tab2+3,x4)==CGAL::ON_POSITIVE_SIDE);
|
assert(sos(tab2+0,tab2+3,x4)==CGAL::ON_POSITIVE_SIDE);
|
||||||
assert(sbs(tab2+0,tab2+3,x4)==CGAL::ON_BOUNDED_SIDE);
|
assert(sbs(tab2+0,tab2+3,x4)==CGAL::ON_BOUNDED_SIDE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue