GLAMERDOC++
Gravitational Lensing Code Library
|
#include <point.h>
Public Member Functions | |
Point_nd (int d) | |
void | setD (int d) |
Point_nd (const Point_nd &p) | |
Point_nd< T > & | operator= (const Point_nd< T > &p) |
Point_nd< T > | operator+ (const Point_nd< T > &p) const |
Point_nd< T > | operator- (const Point_nd< T > &p) const |
Point_nd< T > & | operator+= (const Point_nd< T > &p) |
Point_nd< T > & | operator-= (const Point_nd< T > &p) |
Point_nd< T > & | operator/= (T value) |
Point_nd< T > | operator/ (T value) const |
Point_nd< T > & | operator*= (T value) |
Point_nd | operator* (PosType value) const |
T | operator* (const Point_nd< T > &p) const |
scalar product | |
T | length_sqr () const |
length | |
T | length () const |
T * | data () |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
Public Attributes | |
std::vector< T > | x |
/brief N-dimensional point
This is a rapper for a n-dimenstional vector that adds arithmetic methods