PointSampler library (C++)
Loading...
Searching...
No Matches
jittered_grid.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ps
 

Functions

template<typename T , size_t N>
std::vector< Point< T, N > > ps::jittered_grid (size_t count, const std::array< std::pair< T, T >, N > &axis_ranges, const std::array< T, N > &jitter_amount, const std::array< T, N > &stagger_ratio, std::optional< unsigned int > seed=std::nullopt)
 Generates a point set on a jittered and optionally staggered grid.
 
template<typename T , size_t N>
std::vector< Point< T, N > > ps::jittered_grid (size_t count, const std::array< std::pair< T, T >, N > &axis_ranges, std::optional< unsigned int > seed=std::nullopt)
 Generates a jittered grid of points with full jitter and no stagger.