libigl v2.5.0
Loading...
Searching...
No Matches
assign_scalar.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4// Copyright (C) 2021 Alec Jacobson <alecjacobson@gmail.com>
5//
6// This Source Code Form is subject to the terms of the Mozilla Public License
7// v. 2.0. If a copy of the MPL was not distributed with this file, You can
8// obtain one at http://mozilla.org/MPL/2.0/.
9#ifndef IGL_COPYLEFT_CGAL_ASSIGN_SCALAR_H
10#define IGL_COPYLEFT_CGAL_ASSIGN_SCALAR_H
11#include "../../igl_inline.h"
12#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
13#include <CGAL/Exact_predicates_exact_constructions_kernel_with_sqrt.h>
14#ifndef WIN32
15#include <CGAL/gmpxx.h>
16#endif
17
18namespace igl
19{
20 namespace copyleft
21 {
22 namespace cgal
23 {
42 template <typename RHS, typename LHS>
44 const RHS & rhs,
45 const bool & slow_and_more_precise,
46 LHS & lhs);
53 const CGAL::Epeck::FT & cgal,
54 CGAL::Epeck::FT & d);
57 const CGAL::Epeck::FT & cgal,
58 double & d);
62 const CGAL::Epeck::FT & cgal,
63 float& d);
66 const double & c,
67 double & d);
70 const float& c,
71 float & d);
74 const float& c,
75 double& d);
78 const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
79 CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & d);
82 const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
83 double & d);
86 const CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt::FT & cgal,
87 float& d);
88#ifndef WIN32
91 const CGAL::Simple_cartesian<mpq_class>::FT & cgal,
92 CGAL::Simple_cartesian<mpq_class>::FT & d);
95 const CGAL::Simple_cartesian<mpq_class>::FT & cgal,
96 double & d);
99 const CGAL::Simple_cartesian<mpq_class>::FT & cgal,
100 float& d);
101#endif
102 }
103 }
104}
105
106#ifndef IGL_STATIC_LIBRARY
107# include "assign_scalar.cpp"
108#endif
109#endif
#define IGL_INLINE
Definition igl_inline.h:15
void assign_scalar(const RHS &rhs, const bool &slow_and_more_precise, LHS &lhs)
Conduct the casting copy: lhs = rhs using slow_and_more_precise rounding if more desired.
Definition AABB.h:17