Change ray/line.point(int --> FT)

There is no real requirement on it being an 'int', except some symmetry with
the segment.
This commit is contained in:
Mael Rouxel-Labbé
2019-07-26 15:59:52 +02:00
parent 00be9f3bb9
commit 6c8a8f347d
21 changed files with 71 additions and 63 deletions
@@ -2935,6 +2935,7 @@ namespace CartesianKernelFunctors {
class Construct_point_2
{
typedef typename K::RT RT;
typedef typename K::FT FT;
typedef typename K::Point_2 Point_2;
typedef typename K::Weighted_point_2 Weighted_point_2;
typedef typename K::Line_2 Line_2;
@@ -2973,12 +2974,12 @@ namespace CartesianKernelFunctors {
{
typename K::Construct_point_2 construct_point_2;
typename K::FT x, y;
line_get_pointC2(l.a(), l.b(), l.c(), 0, x, y);
line_get_pointC2(l.a(), l.b(), l.c(), FT(0), x, y);
return construct_point_2(x,y);
}
Point_2
operator()(const Line_2& l, int i) const
operator()(const Line_2& l, const FT i) const
{
typename K::Construct_point_2 construct_point_2;
typename K::FT x, y;