Search code examples
cgal

Using data type like uint64_t in cgal's exact kernel


I am beginning with CGAL. What I would like to do is to create point that coordinates are number ~ 2^51.

typedef CGAL::Exact_predicates_exact_constructions_kernel K;

typedef K::Point_2 P;

uint_64 x,y;
//init them somehow
    P sp0(x,y);

Then I got a long template error. Someone could help?


Solution

  • Ok. I think that I found solution. The problem was that I used exact Kernel that supports only double, switching to inexact kernel solved the problem. It was also possible to use just double. (one of the requirements was to use data type that supports intergers up to 2^48).