Changeset 3977 for trunk/psLib/src/astro/psCoord.c
- Timestamp:
- May 18, 2005, 7:18:20 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r3884 r3977 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.6 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-05-1 1 22:02:15$12 * @version $Revision: 1.67 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-05-19 05:18:20 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 876 876 psPlaneTransform *psPlaneTransformCombine(psPlaneTransform *out, 877 877 const psPlaneTransform *trans1, 878 const psPlaneTransform *trans2) 879 { 878 const psPlaneTransform *trans2, 879 psRegion region, 880 int nSamples) 881 { 882 883 // XXX: This does not yet use region and nSamples: need to modify -rdd 884 880 885 PS_PTR_CHECK_NULL(trans1, NULL); 881 886 PS_PTR_CHECK_NULL(trans2, NULL); … … 1128 1133 psPlaneTransform *psPlaneTransformInvert(psPlaneTransform *out, 1129 1134 const psPlaneTransform *in, 1130 psRegion *region,1135 psRegion region, 1131 1136 int nSamples) 1132 1137 { … … 1138 1143 return(p_psPlaneTransformLinearInvert((psPlaneTransform *) in)); 1139 1144 } 1140 PS_PTR_CHECK_NULL(region, NULL);1141 1145 PS_INT_COMPARE(1, nSamples, NULL); 1142 1146 … … 1197 1201 psS32 cnt = 0; 1198 1202 for (int yint = 0; yint < nSamples; yint++) { 1199 inCoord->y = region ->y0 + ((psF32) yint) * ((region->y1 - region->y0) / ((psF32) nSamples));1203 inCoord->y = region.y0 + ((psF32) yint) * ((region.y1 - region.y0) / ((psF32) nSamples)); 1200 1204 for (int xint = 0; xint < nSamples; xint++) { 1201 inCoord->x = region ->x0 + ((psF32) xint) * ((region->x1 - region->x0) / ((psF32) nSamples));1205 inCoord->x = region.x0 + ((psF32) xint) * ((region.x1 - region.x0) / ((psF32) nSamples)); 1202 1206 (void)psPlaneTransformApply(outCoord, in, inCoord); 1203 1207
Note:
See TracChangeset
for help on using the changeset viewer.
