IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 10, 2004, 1:59:41 PM (22 years ago)
Author:
gusciora
Message:

This is the first compiling version of astometry.c

File:
1 edited

Legend:

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

    r1440 r1463  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-08-09 23:34:57 $
     13*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-10 23:59:41 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131static float arg(float x, float y);
    3232
    33 // This is the only function in this file which I understand.
    34 psPlane* psPlaneTransformApply(psPlane* out, const psPlaneTransform* transform, const psPlane* coords)
     33psPlane* psPlaneTransformApply(psPlane* out,
     34                               const psPlaneTransform* transform,
     35                               const psPlane* coords)
    3536{
    3637    if (out == NULL) {
     
    5051psPlane* psPlaneDistortApply(psPlane* out,
    5152                             const psPlaneDistort* transform,
    52                              const psPlane* coords, float term3, float term4)
     53                             const psPlane* coords,
     54                             float term3,
     55                             float term4)
    5356{
    5457    if (out == NULL) {
     
    5962             (transform->x->coeff[1][0][0][0] * coords->x) +
    6063             (transform->x->coeff[0][1][0][0] * coords->y) +
    61              (transform->x->coeff[0][0][1][0] * term3) + (transform->x->coeff[0][0][0][1] * term4);
     64             (transform->x->coeff[0][0][1][0] * term3) +
     65             (transform->x->coeff[0][0][0][1] * term4);
    6266
    6367    out->y = transform->y->coeff[0][0][0][0] +
    6468             (transform->y->coeff[1][0][0][0] * coords->x) +
    6569             (transform->y->coeff[0][1][0][0] * coords->y) +
    66              (transform->y->coeff[0][0][1][0] * term3) + (transform->y->coeff[0][0][0][1] * term4);
     70             (transform->y->coeff[0][0][1][0] * term3) +
     71             (transform->y->coeff[0][0][0][1] * term4);
    6772
    6873    return (out);
Note: See TracChangeset for help on using the changeset viewer.