#include "pointarray.h"#include <vector>#include <cstring>Include dependency graph for pointarray.cpp:

Go to the source code of this file.
Functions | |
| int | cmp_axis_x (const void *a, const void *b) |
| int | cmp_axis_y (const void *a, const void *b) |
| int | cmp_axis_z (const void *a, const void *b) |
| int | cmp_val (const void *a, const void *b) |
| int | cmp_float (const void *a, const void *b) |
|
||||||||||||
|
Definition at line 42 of file pointarray.cpp. Referenced by EMAN::PointArray::sort_by_axis(). 00043 {
00044 double diff = ((double *) a)[0] - ((double *) b)[0];
00045 if (diff < 0.0)
00046 return -1;
00047 else if (diff > 0.0)
00048 return 1;
00049 else
00050 return 0;
00051 }
|
|
||||||||||||
|
Definition at line 52 of file pointarray.cpp. Referenced by EMAN::PointArray::sort_by_axis(). 00053 {
00054 double diff = ((double *) a)[1] - ((double *) b)[1];
00055 if (diff < 0.0)
00056 return -1;
00057 else if (diff > 0.0)
00058 return 1;
00059 else
00060 return 0;
00061 }
|
|
||||||||||||
|
Definition at line 62 of file pointarray.cpp. Referenced by EMAN::PointArray::sort_by_axis(). 00063 {
00064 double diff = ((double *) a)[2] - ((double *) b)[2];
00065 if (diff < 0.0)
00066 return -1;
00067 else if (diff > 0.0)
00068 return 1;
00069 else
00070 return 0;
00071 }
|
|
||||||||||||
|
Definition at line 83 of file pointarray.cpp. Referenced by EMAN::PointArray::distmx(). 00084 {
00085 double diff = *((float *) a) - *((float *) b);
00086 if (diff < 0.0)
00087 return 1;
00088 else if (diff > 0.0)
00089 return -1;
00090 else
00091 return 0;
00092 }
|
|
||||||||||||
|
Definition at line 72 of file pointarray.cpp. Referenced by EMAN::PointArray::sort_by_axis(). 00073 {
00074 double diff = ((double *) a)[3] - ((double *) b)[3];
00075 if (diff < 0.0)
00076 return -1;
00077 else if (diff > 0.0)
00078 return 1;
00079 else
00080 return 0;
00081 }
|
1.3.9.1