Changeset 5816
- Timestamp:
- Dec 19, 2005, 7:20:50 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r5813 r5816 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.9 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-12- 19 23:58:47$12 * @version $Revision: 1.98 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-12-20 05:20:50 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 206 206 207 207 // XXX: Verify the order/nterms poly changes 208 psPlaneTransform* psPlaneTransformAlloc(int n1, int n2)209 { 210 PS_ASSERT_INT_NONNEGATIVE( n1, NULL);211 PS_ASSERT_INT_NONNEGATIVE( n2, NULL);208 psPlaneTransform* psPlaneTransformAlloc(int order1, int order2) 209 { 210 PS_ASSERT_INT_NONNEGATIVE(order1, NULL); 211 PS_ASSERT_INT_NONNEGATIVE(order2, NULL); 212 212 213 213 psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform)); 214 pt->x = psPolynomial2DAlloc( n1, n2, PS_POLYNOMIAL_ORD);215 pt->y = psPolynomial2DAlloc( n1, n2, PS_POLYNOMIAL_ORD);214 pt->x = psPolynomial2DAlloc(order1, order2, PS_POLYNOMIAL_ORD); 215 pt->y = psPolynomial2DAlloc(order1, order2, PS_POLYNOMIAL_ORD); 216 216 217 217 psMemSetDeallocator(pt, (psFreeFunc) planeTransformFree); … … 267 267 268 268 // XXX: Verify the order/nterms poly changes 269 psPlaneDistort* psPlaneDistortAlloc(int n1, int n2, int n3, int n4)270 { 271 PS_ASSERT_INT_NONNEGATIVE( n1, NULL);272 PS_ASSERT_INT_NONNEGATIVE( n2, NULL);273 PS_ASSERT_INT_NONNEGATIVE( n3, NULL);274 PS_ASSERT_INT_NONNEGATIVE( n4, NULL);269 psPlaneDistort* psPlaneDistortAlloc(int order1, int order2, int order3, int order4) 270 { 271 PS_ASSERT_INT_NONNEGATIVE(order1, NULL); 272 PS_ASSERT_INT_NONNEGATIVE(order2, NULL); 273 PS_ASSERT_INT_NONNEGATIVE(order3, NULL); 274 PS_ASSERT_INT_NONNEGATIVE(order4, NULL); 275 275 276 276 psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort)); 277 pt->x = psPolynomial4DAlloc( n1, n2, n3, n4, PS_POLYNOMIAL_ORD);278 pt->y = psPolynomial4DAlloc( n1, n2, n3, n4, PS_POLYNOMIAL_ORD);277 pt->x = psPolynomial4DAlloc(order1, order2, order3, order4, PS_POLYNOMIAL_ORD); 278 pt->y = psPolynomial4DAlloc(order1, order2, order3, order4, PS_POLYNOMIAL_ORD); 279 279 280 280 psMemSetDeallocator(pt, (psFreeFunc) planeDistortFree);
Note:
See TracChangeset
for help on using the changeset viewer.
