mirror of https://github.com/CGAL/cgal
Grab return Construct_point_3(Weighted_point_3) by reference
This commit is contained in:
parent
4e01ec78cf
commit
3c6e5875d5
|
|
@ -521,7 +521,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -550,7 +550,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -577,7 +577,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -614,7 +614,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -659,7 +659,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -697,7 +697,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -739,7 +739,7 @@ public:
|
||||||
|
|
||||||
Weighted_point_2 project(const Weighted_point_3& wp) const
|
Weighted_point_2 project(const Weighted_point_3& wp) const
|
||||||
{
|
{
|
||||||
Point_3 p = R().construct_point_3_object()(wp);
|
const Point_3& p = R().construct_point_3_object()(wp);
|
||||||
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
return Weighted_point_2(Point_2(x(p), y(p)), wp.weight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue