IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2005, 7:18:20 PM (21 years ago)
Author:
desonia
Message:

fixes to psRegion.

File:
1 edited

Legend:

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

    r3884 r3977  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-05-11 22:02:15 $
     12*  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-05-19 05:18:20 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    876876psPlaneTransform *psPlaneTransformCombine(psPlaneTransform *out,
    877877        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
    880885    PS_PTR_CHECK_NULL(trans1, NULL);
    881886    PS_PTR_CHECK_NULL(trans2, NULL);
     
    11281133psPlaneTransform *psPlaneTransformInvert(psPlaneTransform *out,
    11291134        const psPlaneTransform *in,
    1130         psRegion *region,
     1135        psRegion region,
    11311136        int nSamples)
    11321137{
     
    11381143        return(p_psPlaneTransformLinearInvert((psPlaneTransform *) in));
    11391144    }
    1140     PS_PTR_CHECK_NULL(region, NULL);
    11411145    PS_INT_COMPARE(1, nSamples, NULL);
    11421146
     
    11971201    psS32 cnt = 0;
    11981202    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));
    12001204        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));
    12021206            (void)psPlaneTransformApply(outCoord, in, inCoord);
    12031207
Note: See TracChangeset for help on using the changeset viewer.