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

Implements the RandomDistribution concept for sampling over a shape. More...

#include <geomc/random/SampleGeometry.h>

Inheritance diagram for ShapeDistribution< Shape >:
Dimensional< Shape::elem_t, Shape::N >

Public Types

using shape_type = Shape
 
using param_type = Shape
 
using result_type = typename Shape::point_t
 
using elem_t
 The coordinate type of this object.
 
using point_t
 The type of a point in this object's space.
 

Public Member Functions

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

Public Attributes

Shape shape
 

Static Public Attributes

static constexpr index_t N
 The dimension of this object.
 

Detailed Description

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

Implements the RandomDistribution concept for sampling over a shape.

Member Typedef Documentation

◆ point_t

using point_t
inherited

The type of a point in this object's space.

An N-vector of T if N > 1, otherwise a T.


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