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);
|
constant (seed_t);
|
||||||
|
|
||||||
T operator() (point_t) const;
|
T operator() (point_t) const noexcept;
|
||||||
|
|
||||||
seed_t seed;
|
seed_t seed;
|
||||||
T value;
|
T value;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
namespace util { namespace noise { namespace basis {
|
namespace util { namespace noise { namespace basis {
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
T
|
T
|
||||||
constant<S,T>::operator() (point_t) const
|
constant<S,T>::operator() (point_t) const noexcept
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ namespace util { namespace noise { namespace basis {
|
|||||||
|
|
||||||
range<T> bounds (void) const;
|
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 (void) const;
|
||||||
seed_t seed (seed_t);
|
seed_t seed (seed_t);
|
||||||
|
@ -48,7 +48,7 @@ namespace util { namespace noise { namespace basis {
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
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;
|
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;
|
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 (void) const;
|
||||||
seed_t seed (seed_t);
|
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>
|
template <size_t S, typename T, template <typename> class L>
|
||||||
T
|
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
|
// extract integer and fractional parts. be careful to always round down
|
||||||
auto p_int = floor (p).template cast<intmax_t> ();
|
auto p_int = floor (p).template cast<intmax_t> ();
|
||||||
|
@ -34,7 +34,7 @@ namespace util { namespace noise { namespace basis {
|
|||||||
|
|
||||||
range<T> bounds (void) const;
|
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 (void) const;
|
||||||
seed_t seed (seed_t);
|
seed_t seed (seed_t);
|
||||||
|
@ -61,7 +61,7 @@ namespace util { namespace noise { namespace basis {
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
template <size_t S, typename T, size_t F>
|
template <size_t S, typename T, size_t F>
|
||||||
T
|
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
|
// extract integer and fractional parts. be careful to always round down
|
||||||
auto p_int = floor (p).template cast<intmax_t> ();
|
auto p_int = floor (p).template cast<intmax_t> ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user