GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
Point_nd< T > Struct Template Reference

#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
 
operator* (const Point_nd< T > &p) const
 scalar product
 
length_sqr () const
 length
 
length () const
 
T * data ()
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 

Public Attributes

std::vector< T > x
 

Detailed Description

template<typename T = PosType>
struct Point_nd< T >

/brief N-dimensional point

This is a rapper for a n-dimenstional vector that adds arithmetic methods


The documentation for this struct was generated from the following file: