IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 12:55:05 PM (20 years ago)
Author:
Paul Price
Message:

Following today's meeting, we agreed that psVectorAlloc (and therefore
psArrayAlloc also) shall set the number of elements in use to equal the
number of elements allocated. We introduce new functions,
psVectorAllocEmpty and psArrayAllocEmpty, that allocate a vector and set
the length to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r9540 r9730  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.125 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-10-13 22:04:58 $
     12*  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-10-24 22:52:55 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    795795    psVector *xOut = psVectorAlloc(numCoords, PS_TYPE_F64);
    796796    psVector *yOut = psVectorAlloc(numCoords, PS_TYPE_F64);
    797     for (psS32 g = 0; g < numCoords; g++) {
     797    for (int g = 0; g < numCoords; g++) {
    798798        xIn->data.F64[g] = ((psPlane *) source->data[g])->x;
    799         xIn->n++;
    800799        yIn->data.F64[g] = ((psPlane *) source->data[g])->y;
    801         yIn->n++;
    802800        xOut->data.F64[g] = ((psPlane *) dest->data[g])->x;
    803         xOut->n++;
    804801        yOut->data.F64[g] = ((psPlane *) dest->data[g])->y;
    805         yOut->n++;
    806802    }
    807803
Note: See TracChangeset for help on using the changeset viewer.