geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
SampleShape< Shape > Struct Template Reference

Sample a point from a shape. More...

#include <geomc/random/SampleGeometry.h>

Public Types

using param_type = Shape
 
using result_type = typename Shape::point_t
 
using shape_type = Shape
 

Public Member Functions

result_type max ()
 
result_type min ()
 
bool operator== (const ShapeDistribution &other) const
 
Shape param () const
 
void param (const Shape &s)
 
void reset ()
 
 ShapeDistribution ()
 
 ShapeDistribution (const Shape &s)
 

Public Attributes

Shape shape
 

Detailed Description

template<typename Shape>
struct geom::SampleShape< Shape >

Sample a point from a shape.

Points inside the shape have uniform probability of being sampled. Use SampleShape<Hollow<Shape>> to sample points only on the boundary of a shape.

Specializations only exist for certain shapes.


The documentation for this struct was generated from the following file: