|
INET Framework for OMNeT++/OMNEST
|
N-dimensional point. More...
#include <Point.h>
Public Types | |
| typedef std::tuple< T ... > | type |
Public Member Functions | |
| Point (T ... t) | |
| double | get (int index) const |
| void | set (int index, double value) |
| Point< T ... > | operator- () const |
| Point< T ... > | operator+ (const Point< T ... > &o) const |
| Point< T ... > | operator- (const Point< T ... > &o) const |
| Point< T ... > | operator* (double d) const |
| Point< T ... > | operator/ (double d) const |
| template<typename P , int DIMS> | |
| void | copyTo (P &p) const |
| Copy the dimensions selected by the 1 bits of DIMS into p. More... | |
| template<typename P , int DIMS> | |
| void | copyFrom (const P &p) |
| Copy the coordinates selected by the 1 bits of DIMS from p. More... | |
| template<typename X , int DIMENSION> | |
| Point< T ... > | getReplaced (X x) const |
| std::string | str () const |
Static Public Member Functions | |
| static Point< T ... > | getZero () |
| static Point< T ... > | getLowerBounds () |
| static Point< T ... > | getUpperBounds () |
Protected Member Functions | |
| template<size_t ... IS> | |
| double | getImpl (int index, std::integer_sequence< size_t, IS... >) const |
| template<size_t ... IS> | |
| void | setImpl (int index, double value, std::integer_sequence< size_t, IS... >) |
| template<size_t ... IS> | |
| Point< T ... > | add (const Point< T ... > &o, std::integer_sequence< size_t, IS ... >) const |
| template<size_t ... IS> | |
| Point< T ... > | subtract (const Point< T ... > &o, std::integer_sequence< size_t, IS ... >) const |
| template<size_t ... IS> | |
| Point< T ... > | multiply (double d, std::integer_sequence< size_t, IS ... >) const |
| template<size_t ... IS> | |
| Point< T ... > | divide (double d, std::integer_sequence< size_t, IS ... >) const |
N-dimensional point.
Supports algebraic operations.
| typedef std::tuple<T ...> inet::math::Point< T >::type |
|
inline |
|
inline |
Copy the coordinates selected by the 1 bits of DIMS from p.
|
inline |
Copy the dimensions selected by the 1 bits of DIMS into p.
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |