IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2005, 12:02:16 PM (21 years ago)
Author:
desonia
Message:

changed PS_PI* to M_PI*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageManip.c

    r3880 r3884  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-05-11 02:29:39 $
     12 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-05-11 22:02:16 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    679679    }
    680680    // put the angle in the range of 0...2PI.
    681     angle = (float)((double)angle - (2.0*PS_PI) * floor(angle / (2.0*PS_PI)));
    682 
    683     if (fabsf(angle - PS_PI_2) < FLT_EPSILON) {
     681    angle = (float)((double)angle - (2.0*M_PI) * floor(angle / (2.0*M_PI)));
     682
     683    if (fabsf(angle - M_PI_2) < FLT_EPSILON) {
    684684        // perform 1/4 rotate counter-clockwise
    685685        psS32 numRows = in->numCols;
     
    726726            }
    727727        }
    728     } else if (fabsf(angle - PS_PI) < FLT_EPSILON) {
     728    } else if (fabsf(angle - M_PI) < FLT_EPSILON) {
    729729        // perform 1/2 rotate
    730730        psS32 numRows = in->numRows;
     
    772772            }
    773773        }
    774     } else if (fabsf(angle - (PS_PI+PS_PI_2)) < FLT_EPSILON) {
     774    } else if (fabsf(angle - (M_PI+M_PI_2)) < FLT_EPSILON) {
    775775        // perform 1/4 rotate clockwise
    776776        psS32 numRows = in->numCols;
Note: See TracChangeset for help on using the changeset viewer.