IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1501


Ignore:
Timestamp:
Aug 11, 2004, 4:46:28 PM (22 years ago)
Author:
desonia
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1440 r1501  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-09 23:34:58 $
     13 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-12 02:46:28 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    689689        float centerY = (float)(numRows) / 2.0f;
    690690        float t = angle * (3.14159265358f / 180.0f);
    691         float cosT = cosf(t);
    692         float sinT = sinf(t);
     691        double cosT = cosf(t);
     692        double sinT = sinf(t);
    693693
    694694        // calculate the corners of the rotated
     
    702702        // (x-centerX)*sinT;
    703703
    704         int outCols = ceil(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
    705         int outRows = ceil(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
     704        int outCols = (int)(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
     705        int outRows = (int)(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
    706706        float minX = (float)outCols / -2.0f;
    707707        int intMinY = outRows / -2;
Note: See TracChangeset for help on using the changeset viewer.