![]() |
Allium
0.1.0
|
A point in D dimensions. More...
#include <point.hpp>


Public Member Functions | |
| Point (const std::initializer_list< N > &entries) | |
| size_t | rows () |
| N & | operator[] (int i) |
| const N & | operator[] (int i) const |
| bool | operator== (const Point &rhs) const |
| Point | operator+= (const Point &rhs) |
| Point | operator*= (N factor) |
| Point< N, D+1 > | joined (N x) |
| template<typename Pred > | |
| bool | all_of (Pred pred) |
| N | prod () const |
Public Member Functions inherited from allium::VectorTrait< Point< N, D >, N > | |
| Point< N, D > & | operator-= (const Other &other) |
| Point< N, D > & | operator/= (Number divisor) |
| Point< N, D > | operator+ (const Other &rhs) const |
| Point< N, D > | operator- (const Other &rhs) const |
| Point< N, D > | operator* (Number factor) const |
| Point< N, D > | operator/ (Number divisor) const |
Static Public Member Functions | |
| static Point | full (N initial_value) |
Additional Inherited Members | |
Public Types inherited from allium::VectorTrait< Point< N, D >, N > | |
| using | Number = N |
| using | Real = real_part_t< Number > |
Public Types inherited from allium::CrtpTrait< Derived > | |
| using | DerivedType = Derived |
A point in D dimensions.
This class is a short, fixed-length, stack-allocated vector.