Changeset 1501
- Timestamp:
- Aug 11, 2004, 4:46:28 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.c
r1440 r1501 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 2$ $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 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 689 689 float centerY = (float)(numRows) / 2.0f; 690 690 float t = angle * (3.14159265358f / 180.0f); 691 floatcosT = cosf(t);692 floatsinT = sinf(t);691 double cosT = cosf(t); 692 double sinT = sinf(t); 693 693 694 694 // calculate the corners of the rotated … … 702 702 // (x-centerX)*sinT; 703 703 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; 706 706 float minX = (float)outCols / -2.0f; 707 707 int intMinY = outRows / -2;
Note:
See TracChangeset
for help on using the changeset viewer.
