|
GLAMERDOC++
Gravitational Lensing Code Library
|
A point on the source or image plane that contains a position and the lensing quantities. More...
#include <point.h>


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_2d & | operator= (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_2d & | operator+= (const Point_2d &p) |
| Point_2d & | operator-= (const Point_2d &p) |
| Point_2d & | operator/= (PosType value) |
| Point_2d | operator/ (PosType value) const |
| Point_2d & | operator*= (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 | |
| Point_2d | unit () const |
| 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 | |
| Point * | next =nullptr |
| Point * | prev =nullptr |
| Point * | image =nullptr |
| unsigned long | id =0 |
| unsigned long | head =0 |
| Boo | in_image |
| double | dt |
| Matrix2x2< KappaType > | A |
| double | gridsize |
| float | surface_brightness |
| Branch * | leaf |
| bool | flag |
Public Attributes inherited from Point_2d | |
| PosType | x [2] |
A point on the source or image plane that contains a position and the lensing quantities.
| Point::Point | ( | ) |
Gives each branch a unique number even if branches are destroed.