00001 00002 c 00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993, 00004 c by Steve McMillan, Drexel University, Philadelphia, PA. 00005 c 00006 c All rights reserved. 00007 c 00008 c Redistribution and use in source and binary forms are permitted 00009 c provided that the above copyright notice and this paragraph are 00010 c duplicated in all such forms and that any documentation, 00011 c advertising materials, and other materials related to such 00012 c distribution and use acknowledge that the software was developed 00013 c by the author named above. 00014 c 00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00018 c 00019 c 00020 c 00021 subroutine mc sym lims 00022 save 00023 c 00024 c Return the correct /fontc1/ info for symbl. 00025 c 00026 real*4 lastinc 00027 common /fontc1/ offx,offy,lastinc,xp,yp,xmax,xmin,ymax,ymin 00028 common /numsym int/ rs,ss,dx,dy,sint,cost 00029 dimension x(4),y(4) 00030 x(1)=0. 00031 y(1)=0. 00032 x(2)=dx*cost 00033 y(2)=dx*sint 00034 x(4)=-dy*sint 00035 y(4)=dy*cost 00036 x(3)=x(2)+x(4) 00037 y(3)=y(2)+y(4) 00038 xmin=1.e6 00039 ymin=xmin 00040 xmax=-xmin 00041 ymax=xmax 00042 do 10 i=1,4 00043 if(x(i).gt.xmax)xmax=x(i) 00044 if(x(i).lt.xmin)xmin=x(i) 00045 if(y(i).gt.ymax)ymax=y(i) 00046 if(y(i).lt.ymin)ymin=y(i) 00047 10 continue 00048 xmin=xmin+rs 00049 xmax=xmax+rs 00050 ymin=ymin+ss 00051 ymax=ymax+ss 00052 xp=rs+dx*cost 00053 yp=ss+dx*sint 00054 end