IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15895


Ignore:
Timestamp:
Dec 22, 2007, 7:52:21 AM (18 years ago)
Author:
eugene
Message:

move allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryUtils.c

    r15884 r15895  
    77 *  @author EAM, IfA
    88 *
    9  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-12-19 18:57:05 $
     9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-12-22 17:52:21 $
    1111 *
    1212 *  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    132132psPlaneTransform *psPlaneTransformRotate (psPlaneTransform *output, psPlaneTransform *input, double theta)
    133133{
    134     // validate fit order
    135     if (output == NULL) {
    136         output = psPlaneTransformAlloc(input->x->nX, input->x->nY);
    137     }
    138 
    139134    /* given the polynomial transformations:
    140135     *  L(x,y) = \sum_i \sum_j A_{i,j} x^i y^j and
     
    145140     * B'_{i,j} = c B_{i,j} - s A_{i,j}
    146141     */
     142
     143    if (output == NULL) {
     144        output = psPlaneTransformAlloc(input->x->nX, input->x->nY);
     145    }
    147146
    148147    float cs = cos(theta);
Note: See TracChangeset for help on using the changeset viewer.