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

A point that automatically has an image point. More...

#include <point.h>

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

Public Member Functions

Point_2dy ()
 
- Public Member Functions inherited from Point
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Point
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 inherited from Point
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 that automatically has an image point.

This does not produce a stack of source plan points that are contigious in memory.


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