GLAMERDOC++
Gravitational Lensing Code Library
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Point Struct Reference

A point on the source or image plane that contains a position and the lensing quantities. More...

#include <point.h>

Inheritance diagram for Point:
Inheritance graph
[legend]
Collaboration diagram for Point:
Collaboration graph
[legend]

Public Member Functions

 Point ()
 
 Point (const Point_2d &p)
 
 Point (PosType x, PosType y)
 
PosType * ptr_y ()
 
Point operator= (const Point_2d &p)
 Only copies position!!
 
KappaType invmag () const
 
KappaType gamma1 () const
 
KappaType gamma2 () const
 
KappaType gamma3 () const
 
KappaType kappa () const
 
double flux ()
 surface_brightness * gridsize * gridsize
 
void Print ()
 print out all member data for testing purposes
 
bool inverted ()
 returns true if the image is double inverted, At very low magnification or when there is a rotation this can fail.
 
- Public Member Functions inherited from Point_2d
 Point_2d (double x1, double x2)
 
 Point_2d (const Point_2d &p)
 
Point_2doperator= (const Point_2d &p)
 
 Point_2d (const PosType *p)
 
bool operator== (const Point_2d &p) const
 
bool operator!= (const Point_2d &p) const
 
Point_2d operator+ (const Point_2d &p) const
 
Point_2d operator- (const Point_2d &p) const
 
Point_2doperator+= (const Point_2d &p)
 
Point_2doperator-= (const Point_2d &p)
 
Point_2doperator/= (PosType value)
 
Point_2d operator/ (PosType value) const
 
Point_2doperator*= (PosType value)
 
Point_2d operator* (PosType value) const
 
PosType operator* (const Point_2d &p) const
 scalar product
 
PosType operator^ (const Point_2d &p) const
 outer product
 
PosType length () const
 length
 
PosType length_sqr () const
 length^2
 
void rotate (PosType theta)
 
Point_2d rotated (PosType theta) const
 returns a copy of the point that it rotated
 
void unitize ()
 rescale to make a unit length vector
 
PosType * data ()
 
PosType & operator[] (size_t i)
 
const PosType & operator[] (size_t i) const
 

Static Public Member Functions

static bool orderX (Point *p1, Point *p2)
 
static bool orderXrev (Point *p1, Point *p2)
 
static bool orderY (Point *p1, Point *p2)
 
static bool orderYrev (Point *p1, Point *p2)
 

Public Attributes

Pointnext =nullptr
 
Pointprev =nullptr
 
Pointimage =nullptr
 
unsigned long id =0
 
unsigned long head =0
 
Boo in_image
 
double dt
 
Matrix2x2< KappaType > A
 
double gridsize
 
float surface_brightness
 
Branchleaf
 
bool flag
 
- Public Attributes inherited from Point_2d
PosType x [2]
 

Detailed Description

A point on the source or image plane that contains a position and the lensing quantities.

Constructor & Destructor Documentation

◆ Point()

Point::Point ( )

Gives each branch a unique number even if branches are destroed.


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