Changeset 6251 for trunk/psLib/src/astro/psCoord.c
- Timestamp:
- Jan 30, 2006, 10:28:34 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r6230 r6251 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.10 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-01- 28 01:31:44$12 * @version $Revision: 1.103 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-30 20:28:33 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1085 1085 PS_ASSERT_PTR_NON_NULL(input, NULL); 1086 1086 PS_ASSERT_PTR_NON_NULL(inToOut, NULL); 1087 PS_ASSERT_PTR_NON_NULL(inToOut->x, NULL);1088 PS_ASSERT_PTR_NON_NULL(inToOut->y, NULL);1089 1087 if (out == NULL) { 1090 1088 //XXX: Should the length (nalloc) be 1 and append be used everytime a pixel is added? … … 1104 1102 deriv = psPlaneTransformDeriv(deriv, inToOut, coord); 1105 1103 fxnVal = psPlaneTransformApply(fxnVal, inToOut, coord); 1106 if (fabs(fxnVal->x - coord->x) < fabs(deriv->x) &&1107 fabs(fxnVal->y - coord->y) < fabs(deriv->y)) {1108 int x = (int)( round(fabs(deriv->x)));1109 int y = (int)( round(fabs(deriv->y)));1104 if (fabs(fxnVal->x - coord->x) <= fabs(deriv->x) && 1105 fabs(fxnVal->y - coord->y) <= fabs(deriv->y)) { 1106 int x = (int)(ceil(fabs(deriv->x))); 1107 int y = (int)(ceil(fabs(deriv->y))); 1110 1108 for (int j = -x; j <= x; j++) { 1111 1109 for (int k = -y; k <= y; k++) {
Note:
See TracChangeset
for help on using the changeset viewer.
