Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
zzphph.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include "f2c.h"
00007
00008
00009
00010 extern struct {
00011 real xpgmin, ypgmin, xpgmax, ypgmax, xclbot, yclbot, xcltop, ycltop, xbot,
00012 ybot, xtop, ytop, xmin, ymin, xmax, ymax;
00013 integer ixcoor, iycoor;
00014 real alphxx, betaxx, alphyy, betayy, tmajx, tminx, tmajy, tminy;
00015 integer majrx, minrx, majry, minry, isizx, isizy;
00016 real xphold, yphold;
00017 } zzzplt_;
00018
00019 #define zzzplt_1 zzzplt_
00020
00021 extern struct {
00022 real xphmax, yphmax;
00023 integer ixpmax, iypmax;
00024 real xpscal, ypscal;
00025 integer iflip, nplotr;
00026 char cfile[64];
00027 } zzpltr_;
00028
00029 #define zzpltr_1 zzpltr_
00030
00031
00032
00033
00034 int zzphph_(real *x1, real *y1, real *x2, real *y2)
00035 {
00036 extern int zzmpli_(real *, real *, real *, real *);
00037 static real px1, px2, py1, py2;
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 if (zzpltr_1.iflip == 1) {
00062
00063 px1 = zzpltr_1.xpscal * (zzpltr_1.yphmax - *y1);
00064 px2 = zzpltr_1.xpscal * (zzpltr_1.yphmax - *y2);
00065 py1 = zzpltr_1.ypscal * (zzpltr_1.xphmax - *x1);
00066 py2 = zzpltr_1.ypscal * (zzpltr_1.xphmax - *x2);
00067 } else if (zzpltr_1.iflip == 2) {
00068
00069 px1 = zzpltr_1.xpscal * (zzpltr_1.yphmax - *y1);
00070 px2 = zzpltr_1.xpscal * (zzpltr_1.yphmax - *y2);
00071 py1 = zzpltr_1.xpscal * *x1;
00072 py2 = zzpltr_1.xpscal * *x2;
00073 } else {
00074
00075 px1 = zzpltr_1.xpscal * *x1;
00076 px2 = zzpltr_1.xpscal * *x2;
00077 py1 = zzpltr_1.ypscal * *y1;
00078 py2 = zzpltr_1.ypscal * *y2;
00079 }
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105 if (zzpltr_1.nplotr == 7) {
00106 zzmpli_(&px1, &py1, &px2, &py2);
00107 }
00108
00109
00110
00111
00112 return 0;
00113 }
00114