Changeset 3884 for trunk/psLib/src/image/psImageManip.c
- Timestamp:
- May 11, 2005, 12:02:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.c
r3880 r3884 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.4 0$ $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 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 679 679 } 680 680 // 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) { 684 684 // perform 1/4 rotate counter-clockwise 685 685 psS32 numRows = in->numCols; … … 726 726 } 727 727 } 728 } else if (fabsf(angle - PS_PI) < FLT_EPSILON) {728 } else if (fabsf(angle - M_PI) < FLT_EPSILON) { 729 729 // perform 1/2 rotate 730 730 psS32 numRows = in->numRows; … … 772 772 } 773 773 } 774 } else if (fabsf(angle - ( PS_PI+PS_PI_2)) < FLT_EPSILON) {774 } else if (fabsf(angle - (M_PI+M_PI_2)) < FLT_EPSILON) { 775 775 // perform 1/4 rotate clockwise 776 776 psS32 numRows = in->numCols;
Note:
See TracChangeset
for help on using the changeset viewer.
