mirror of https://github.com/CGAL/cgal
Fixed missing _object(){ } for construct_wp/p functors of projection traits
This commit is contained in:
parent
37eac35321
commit
9f366d6acf
|
|
@ -958,6 +958,12 @@ public:
|
|||
return Intersect_2();
|
||||
}
|
||||
|
||||
Construct_point_2 construct_point_2_object() const
|
||||
{ return Construct_point_2();}
|
||||
|
||||
Construct_weighted_point_2 construct_weighted_point_2_object() const
|
||||
{ return Construct_weighted_point_2();}
|
||||
|
||||
Construct_segment_2 construct_segment_2_object() const
|
||||
{return Construct_segment_2();}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@ int main()
|
|||
|
||||
assert( k.compute_squared_length_2_object()(v3) == v2.squared_length() );
|
||||
|
||||
assert( p3 == k.construct_point_2_object()(p3) );
|
||||
assert( p3 == k.construct_point_2_object()(wp3) );
|
||||
assert( wp3 == k.construct_weighted_point_2_object()(p3, 1) );
|
||||
assert( wp3 == k.construct_weighted_point_2_object()(wp3) );
|
||||
|
||||
assert( k.compare_power_distance_2_object()(p3, wq3, wr3) ==
|
||||
CGAL::compare_power_distance(p2, wq2, wr2) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue