00001 /** @file psEllipse.h 00002 * 00003 * functions to manipulate sparse matrices equations 00004 * 00005 */ 00006 00007 #ifndef PS_ELLIPSE_H 00008 #define PS_ELLIPSE_H 00009 00010 // strucures to define elliptical shape parameters 00011 typedef struct 00012 { 00013 double major; // Major axis 00014 double minor; // Minor axis 00015 double theta; // Position angle 00016 } 00017 psEllipseAxes; 00018 00019 typedef struct 00020 { 00021 double x2; // Moment of xx 00022 double y2; // Moment of yy 00023 double xy; // Moment of xy 00024 } 00025 psEllipseMoments; 00026 00027 typedef struct 00028 { 00029 double sx; // Shape parameter in x 00030 double sy; // Shape parameter in y 00031 double sxy; // Shape parameter in xy 00032 } 00033 psEllipseShape; 00034 00035 // conversions between elliptical shape representations 00036 psEllipseAxes psEllipseMomentsToAxes(psEllipseMoments moments); 00037 psEllipseShape psEllipseAxesToShape(psEllipseAxes axes); 00038 psEllipseAxes psEllipseShapeToAxes(psEllipseShape shape); 00039 00040 #endif
1.4.4