PointSampler library (C++)
Loading...
Searching...
No Matches
range.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::filter_points_in_range (const std::vector< Point< T, N > > &points, const std::array< std::pair< T, T >, N > &axis_ranges)
 Filters points that lie within the specified axis-aligned bounding box.
 
template<typename T , std::size_t N, typename Func >
std::vector< Point< T, N > > ps::filter_points_function (const std::vector< Point< T, N > > &points, Func fn)
 Filters points using a user-provided function.
 
template<typename T , size_t N>
void ps::refit_points_to_range (std::vector< Point< T, N > > &points, const std::array< std::pair< T, T >, N > &target_ranges)
 Linearly remap a set of points to fit within the specified axis-aligned ranges.
 
template<typename T , size_t N>
void ps::rescale_points (std::vector< Point< T, N > > &points, const std::array< std::pair< T, T >, N > &ranges)
 Rescales normalized points (in [0, 1]) to specified axis-aligned ranges.