![]() |
Peano
|
#include <geometry.h>
Public Types | |
using | D = dim |
using | P = fp |
using | Point = Point<D, P> |
Public Member Functions | |
bool | operator== (const Region &r) const |
bool | operator!= (const Region &r) const |
P | size () const |
bool | contains (const Point &p) const |
bool | containsEx (const Point &p) const |
NumVec< i32, dim::N > | containsAxis (const Point &p) const |
bool | overlaps (const Region &r) const |
bool | contains (const Region &r) const |
bool | sharesBoundary (const Region &r) const |
Region | intersection (const Region &r) const |
Point | centre () const |
void | split (u32 n, Region *regions) const |
u32 | splitIdx (u32 n, const Point &p) const |
Static Public Member Functions | |
static Region | fromInclusiveBounds (const Point &low, const Point &high) |
Data Fields | |
Point | low |
Point | high |
Private Member Functions | |
bool | _betweenIn (const fp min, const fp val, const fp max) const |
bool | _betweenEx (const fp min, const fp val, const fp max) const |
bool | between (const fp min, const fp val, const fp max) const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Region &value) |
Definition at line 37 of file geometry.h.
using Region< dim, fp, topBoundaryInclusive >::D = dim |
Definition at line 53 of file geometry.h.
using Region< dim, fp, topBoundaryInclusive >::P = fp |
Definition at line 54 of file geometry.h.
Definition at line 56 of file geometry.h.
|
private |
Definition at line 43 of file geometry.h.
Referenced by Region< dim, fp, topBoundaryInclusive >::between().
|
private |
Definition at line 39 of file geometry.h.
Referenced by Region< dim, fp, topBoundaryInclusive >::between(), and Region< dim, fp, topBoundaryInclusive >::containsEx().
|
private |
Definition at line 47 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::_betweenEx(), and Region< dim, fp, topBoundaryInclusive >::_betweenIn().
Referenced by Region< dim, fp, topBoundaryInclusive >::contains(), Region< dim, fp, topBoundaryInclusive >::contains(), and Region< dim, fp, topBoundaryInclusive >::containsAxis().
Definition at line 180 of file geometry.h.
Definition at line 89 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::between().
bool Region< dim, fp, topBoundaryInclusive >::contains | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 124 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::between(), and r.
NumVec< i32, dim::N > Region< dim, fp, topBoundaryInclusive >::containsAxis | ( | const Point & | p | ) | const |
Definition at line 105 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::between().
Definition at line 97 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::_betweenIn().
|
static |
Definition at line 61 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::high, and Region< dim, fp, topBoundaryInclusive >::low.
Region Region< dim, fp, topBoundaryInclusive >::intersection | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 162 of file geometry.h.
References r.
bool Region< dim, fp, topBoundaryInclusive >::operator!= | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 73 of file geometry.h.
References r.
bool Region< dim, fp, topBoundaryInclusive >::operator== | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 69 of file geometry.h.
References r.
bool Region< dim, fp, topBoundaryInclusive >::overlaps | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 116 of file geometry.h.
References r.
bool Region< dim, fp, topBoundaryInclusive >::sharesBoundary | ( | const Region< dim, fp, topBoundaryInclusive > & | r | ) | const |
Definition at line 144 of file geometry.h.
References r.
Definition at line 77 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::low, and Region< dim, fp, topBoundaryInclusive >::size().
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), Region< dim, fp, topBoundaryInclusive >::size(), and kernel_impl.Enumerator::upper().
void Region< dim, fp, topBoundaryInclusive >::split | ( | u32 | n, |
Region< dim, fp, topBoundaryInclusive > * | regions ) const |
Definition at line 184 of file geometry.h.
References Region< dim, fp, topBoundaryInclusive >::low.
Definition at line 205 of file geometry.h.
References assert, and Region< dim, fp, topBoundaryInclusive >::low.
|
friend |
Definition at line 231 of file geometry.h.
Definition at line 59 of file geometry.h.
Referenced by Region< dim, fp, topBoundaryInclusive >::fromInclusiveBounds().
Definition at line 58 of file geometry.h.
Referenced by Region< dim, fp, topBoundaryInclusive >::fromInclusiveBounds(), Region< dim, fp, topBoundaryInclusive >::size(), Region< dim, fp, topBoundaryInclusive >::split(), and Region< dim, fp, topBoundaryInclusive >::splitIdx().