n/basis: add noexcept to all generators
This commit is contained in:
parent
e769b8f74a
commit
98ef67fa8d
@ -30,7 +30,7 @@ namespace util { namespace noise { namespace basis {
|
||||
|
||||
constant (seed_t);
|
||||
|
||||
T operator() (point_t) const;
|
||||
T operator() (point_t) const noexcept;
|
||||
|
||||
seed_t seed;
|
||||
T value;
|
||||
|
@ -22,7 +22,7 @@
|
||||
namespace util { namespace noise { namespace basis {
|
||||
template <size_t S, typename T>
|
||||
T
|
||||
constant<S,T>::operator() (point_t) const
|
||||
constant<S,T>::operator() (point_t) const noexcept
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace util { namespace noise { namespace basis {
|
||||
|
||||
range<T> bounds (void) const;
|
||||
|
||||
T operator() (point<S,T>) const;
|
||||
T operator() (point<S,T>) const noexcept;
|
||||
|
||||
seed_t seed (void) const;
|
||||
seed_t seed (seed_t);
|
||||
|
@ -48,7 +48,7 @@ namespace util { namespace noise { namespace basis {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <size_t S, typename T>
|
||||
T
|
||||
patch<S,T>::operator () (point<S,T> p) const
|
||||
patch<S,T>::operator () (point<S,T> p) const noexcept
|
||||
{
|
||||
static const size_t COUNT = type::distance<S,2>::OFFSET_SIZE;
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace util { namespace noise { namespace basis {
|
||||
|
||||
range<T> bounds (void) const;
|
||||
|
||||
value_t operator() (point_t) const;
|
||||
value_t operator() (point_t) const noexcept;
|
||||
|
||||
seed_t seed (void) const;
|
||||
seed_t seed (seed_t);
|
||||
|
@ -61,7 +61,7 @@ namespace util { namespace noise { namespace basis {
|
||||
//-------------------------------------------------------------------------
|
||||
template <size_t S, typename T, template <typename> class L>
|
||||
T
|
||||
value<S,T,L>::operator() (util::point<S,T> p) const
|
||||
value<S,T,L>::operator() (util::point<S,T> p) const noexcept
|
||||
{
|
||||
// extract integer and fractional parts. be careful to always round down
|
||||
auto p_int = floor (p).template cast<intmax_t> ();
|
||||
|
@ -34,7 +34,7 @@ namespace util { namespace noise { namespace basis {
|
||||
|
||||
range<T> bounds (void) const;
|
||||
|
||||
value_t operator() (point_t) const;
|
||||
value_t operator() (point_t) const noexcept;
|
||||
|
||||
seed_t seed (void) const;
|
||||
seed_t seed (seed_t);
|
||||
|
@ -61,7 +61,7 @@ namespace util { namespace noise { namespace basis {
|
||||
//-------------------------------------------------------------------------
|
||||
template <size_t S, typename T, size_t F>
|
||||
T
|
||||
worley<S,T,F>::operator() (point<S,T> p) const
|
||||
worley<S,T,F>::operator() (point<S,T> p) const noexcept
|
||||
{
|
||||
// extract integer and fractional parts. be careful to always round down
|
||||
auto p_int = floor (p).template cast<intmax_t> ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user