EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
EBGeometry_Random.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Robert Marskar <robert.marskar@sintef.no>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
11#ifndef EBGEOMETRY_RANDOM_HPP
12#define EBGEOMETRY_RANDOM_HPP
13
14// Std includes
15#include <cstddef>
16#include <cstdint>
17#include <vector>
18
19// Our includes
20#include "EBGeometry_Vec.hpp"
21
22namespace EBGeometry {
23
27namespace Random {
28
41template <class T>
42[[nodiscard]] inline std::vector<Vec3T<T>>
43samplePoints(size_t a_count, uint64_t a_seed);
44
45} // namespace Random
46
47} // namespace EBGeometry
48
49#include "EBGeometry_RandomImplem.hpp"
50
51#endif
Declaration of 2D and 3D point/vector classes with templated precision, and free functions on them.
std::vector< Vec3T< T > > samplePoints(size_t a_count, uint64_t a_seed)
Sample a_count uniform random points in the unit cube [0,1]^3.
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26