IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3991


Ignore:
Timestamp:
May 19, 2005, 2:15:50 PM (21 years ago)
Author:
desonia
Message:

an old line got slipped back in.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r3990 r3991  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-05-19 23:57:36 $
     12*  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-05-20 00:15:50 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    124124    /* This is sample code from IfA.  It didn't work initially, and I did not
    125125       spend any time debugging it.
    126      
     126
    127127        psF64 a = transform->x->coeff[1][0];
    128128        psF64 b = transform->x->coeff[0][1];
     
    131131        psF64 e = transform->x->coeff[0][0];
    132132        psF64 f = transform->y->coeff[0][0];
    133      
     133
    134134        psF64 invDet = 1.0 / (a * d - b * c); // Inverse of the determinant
    135      
     135
    136136        // Not entirely sure why this works, but it appears to do so....................................!
    137137        out->x->coeff[1][0] = invDet * a;
     
    139139        out->y->coeff[1][0] = - invDet * c;
    140140        out->y->coeff[0][1] = invDet * d;
    141      
     141
    142142        out->x->coeff[0][0] = - invDet * (d * e + c * f);
    143143        out->y->coeff[0][0] = - invDet * (b * e + a * f);
     
    11561156psPlaneTransform *psPlaneTransformInvert(psPlaneTransform *out,
    11571157        const psPlaneTransform *in,
    1158         psRegion *region,
     1158        psRegion region,
    11591159        int nSamples)
    11601160{
  • trunk/psLib/src/astronomy/psCoord.c

    r3990 r3991  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-05-19 23:57:36 $
     12*  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-05-20 00:15:50 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    124124    /* This is sample code from IfA.  It didn't work initially, and I did not
    125125       spend any time debugging it.
    126      
     126
    127127        psF64 a = transform->x->coeff[1][0];
    128128        psF64 b = transform->x->coeff[0][1];
     
    131131        psF64 e = transform->x->coeff[0][0];
    132132        psF64 f = transform->y->coeff[0][0];
    133      
     133
    134134        psF64 invDet = 1.0 / (a * d - b * c); // Inverse of the determinant
    135      
     135
    136136        // Not entirely sure why this works, but it appears to do so....................................!
    137137        out->x->coeff[1][0] = invDet * a;
     
    139139        out->y->coeff[1][0] = - invDet * c;
    140140        out->y->coeff[0][1] = invDet * d;
    141      
     141
    142142        out->x->coeff[0][0] = - invDet * (d * e + c * f);
    143143        out->y->coeff[0][0] = - invDet * (b * e + a * f);
     
    11561156psPlaneTransform *psPlaneTransformInvert(psPlaneTransform *out,
    11571157        const psPlaneTransform *in,
    1158         psRegion *region,
     1158        psRegion region,
    11591159        int nSamples)
    11601160{
Note: See TracChangeset for help on using the changeset viewer.