assign_scalar.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_COPYLEFT_CGAL_ASSIGN_SCALAR_H
  9. #define IGL_COPYLEFT_CGAL_ASSIGN_SCALAR_H
  10. #include "../../igl_inline.h"
  11. #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
  12. #include <CGAL/Exact_predicates_exact_constructions_kernel_with_sqrt.h>
  13. namespace igl
  14. {
  15. namespace copyleft
  16. {
  17. namespace cgal
  18. {
  19. // Inputs:
  20. // cgal cgal scalar
  21. // Outputs:
  22. // d output scalar
  23. IGL_INLINE void assign_scalar(
  24. const CGAL::Epeck::FT & cgal,
  25. CGAL::Epeck::FT & d);
  26. IGL_INLINE void assign_scalar(
  27. const CGAL::Epeck::FT & cgal,
  28. double & d);
  29. IGL_INLINE void assign_scalar(
  30. const CGAL::Epeck::FT & cgal,
  31. float& d);
  32. IGL_INLINE void assign_scalar(
  33. const double & c,
  34. double & d);
  35. IGL_INLINE void assign_scalar(
  36. const float& c,
  37. float & d);
  38. IGL_INLINE void assign_scalar(
  39. const float& c,
  40. double& d);
  41. IGL_INLINE void assign_scalar(
  42. const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
  43. CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & d);
  44. IGL_INLINE void assign_scalar(
  45. const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
  46. double & d);
  47. IGL_INLINE void assign_scalar(
  48. const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
  49. float& d);
  50. }
  51. }
  52. }
  53. #ifndef IGL_STATIC_LIBRARY
  54. # include "assign_scalar.cpp"
  55. #endif
  56. #endif