![]() |
Peano
|
#include <geometry.h>
Public Types | |
using | D = dim |
using | P = fp |
Public Member Functions | |
Point ()=default | |
Point (fp val) | |
Point (std::initializer_list< fp > list) | |
Point (const fp(&list)[dim::N]) | |
Point (const Point &other) | |
Point (const NumVec< fp, dim::N > &other) | |
fp | distance (const Point &p) const |
![]() | |
NumVec ()=default | |
NumVec (fp val) | |
NumVec (std::initializer_list< fp > list) | |
NumVec (const fp(&list)[LENGTH]) | |
NumVec (const NumVec &other) | |
NumVec (fp arg0, Args... args) | |
bool | operator== (const NumVec &other) const |
bool | operator!= (const NumVec &other) const |
bool | operator> (const NumVec &other) const |
bool | operator>= (const NumVec &other) const |
bool | operator< (const NumVec &other) const |
bool | operator<= (const NumVec &other) const |
fp & | operator[] (u32 idx) |
const fp & | operator[] (u32 idx) const |
bool | eq (const NumVec &other, const fp eps=std::numeric_limits< fp >::epsilon()) const |
fp | sum () const |
fp | prod () const |
NumVec | floor () const |
NumVec | ceil () const |
NumVec | abs () const |
NumVec | pow (float pow) const |
NumVec< Q, LENGTH > | castAs () const |
Additional Inherited Members | |
![]() | |
static constexpr u32 | size () |
Definition at line 11 of file geometry.h.
using Point< dim, fp >::D = dim |
Definition at line 13 of file geometry.h.
using Point< dim, fp >::P = fp |
Definition at line 14 of file geometry.h.
|
default |
|
explicit |
Definition at line 18 of file geometry.h.
Point< dim, fp >::Point | ( | std::initializer_list< fp > | list | ) |
Definition at line 20 of file geometry.h.
|
explicit |
Definition at line 22 of file geometry.h.
Point< dim, fp >::Point | ( | const Point< dim, fp > & | other | ) |
Definition at line 24 of file geometry.h.
Point< dim, fp >::Point | ( | const NumVec< fp, dim::N > & | other | ) |
Definition at line 26 of file geometry.h.
fp Point< dim, fp >::distance | ( | const Point< dim, fp > & | p | ) | const |
Definition at line 28 of file geometry.h.