IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

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

    r1407 r1440  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-08-07 00:06:06 $
     13*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-09 23:34:57 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232
    3333// This is the only function in this file which I understand.
    34 psPlane *psPlaneTransformApply(psPlane * out, const psPlaneTransform * transform, const psPlane * coords)
     34psPlane* psPlaneTransformApply(psPlane* out, const psPlaneTransform* transform, const psPlane* coords)
    3535{
    3636    if (out == NULL) {
    37         out = (psPlane *) psAlloc(sizeof(psPlane));
     37        out = (psPlane* ) psAlloc(sizeof(psPlane));
    3838    }
    3939    out->x = transform->x->coeff[0][0] +
     
    4848// This transformation takes into account parameters beyond an objects
    4949// spatial coordinates: term3 and term4.
    50 psPlane *psPlaneDistortApply(psPlane * out,
    51                              const psPlaneDistort * transform,
    52                              const psPlane * coords, float term3, float term4)
     50psPlane* psPlaneDistortApply(psPlane* out,
     51                             const psPlaneDistort* transform,
     52                             const psPlane* coords, float term3, float term4)
    5353{
    5454    if (out == NULL) {
    55         out = (psPlane *) psAlloc(sizeof(psPlane));
     55        out = (psPlane* ) psAlloc(sizeof(psPlane));
    5656    }
    5757
     
    7070
    7171// This function prototype has been modified since the SDRS.
    72 psSphereTransform *psSphereTransformAlloc(double NPlat, double Xo, double xo)
    73 {
    74     psSphereTransform *tmp = (psSphereTransform *) psAlloc(sizeof(psSphereTransform));
     72psSphereTransform* psSphereTransformAlloc(double NPlat, double Xo, double xo)
     73{
     74    psSphereTransform* tmp = (psSphereTransform* ) psAlloc(sizeof(psSphereTransform));
    7575
    7676    tmp->sinPhi = sin(NPlat);
     
    8989// there are no typo's.
    9090
    91 psSphere *psSphereTransformApply(psSphere * out, const psSphereTransform * transform, const psSphere * coord)
     91psSphere* psSphereTransformApply(psSphere* out, const psSphereTransform* transform, const psSphere* coord)
    9292{
    9393    double sinY = 0.0;
     
    100100
    101101    if (out == NULL) {
    102         out = (psSphere *) psAlloc(sizeof(psSphere));
     102        out = (psSphere* ) psAlloc(sizeof(psSphere));
    103103    }
    104104
     
    117117}
    118118
    119 psSphereTransform *psSphereTransformICRStoEcliptic(psTime time)
     119psSphereTransform* psSphereTransformICRStoEcliptic(psTime time)
    120120{
    121121    struct tm *tmTime = psTimeToTM(time);
     
    129129}
    130130
    131 psSphereTransform *psSphereTransformEcliptictoICRS(psTime time)
     131psSphereTransform* psSphereTransformEcliptictoICRS(psTime time)
    132132{
    133133    struct tm *tmTime = psTimeToTM(time);
     
    141141}
    142142
    143 psSphereTransform *psSphereTransformICRStoGalatic(void)
     143psSphereTransform* psSphereTransformICRStoGalatic(void)
    144144{
    145145    return (psSphereTransformAlloc(62.6, 282.25, 33.0));
    146146}
    147147
    148 psSphereTransform *psSphereTransformGalatictoICRS(void)
     148psSphereTransform* psSphereTransformGalatictoICRS(void)
    149149{
    150150    return (psSphereTransformAlloc(-62.6, 33.0, 282.25));
     
    178178// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    179179// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    180 psPlane *psProject(const psSphere * coord, const psProjection * projection)
     180psPlane* psProject(const psSphere* coord, const psProjection* projection)
    181181{
    182182    float R = 0.0;
    183183    float alpha = 0.0;
    184     psPlane *tmp = (psPlane *) psAlloc(sizeof(psPlane));
     184    psPlane* tmp = (psPlane* ) psAlloc(sizeof(psPlane));
    185185
    186186    if (projection->type == PS_PROJ_TAN) {
     
    220220// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    221221// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    222 psSphere *psDeproject(const psPlane * coord, const psProjection * projection)
     222psSphere* psDeproject(const psPlane* coord, const psProjection* projection)
    223223{
    224224    float R = 0.0;
     
    226226    float chu1 = 0.0;
    227227    float chu2 = 0.0;
    228     psSphere *tmp = (psSphere *) psAlloc(sizeof(psSphere));
     228    psSphere* tmp = (psSphere* ) psAlloc(sizeof(psSphere));
    229229
    230230    if (projection->type == PS_PROJ_TAN) {
     
    267267// XXX: Do I need to check for unacceptable transformation parameters?
    268268// Maybe, if the points are on the North/South Pole, etc?
    269 psSphere *psSphereGetOffset(const psSphere * restrict position1,
    270                             const psSphere * restrict position2,
     269psSphere* psSphereGetOffset(const psSphere* restrict position1,
     270                            const psSphere* restrict position2,
    271271                            psSphereOffsetMode mode, psSphereOffsetUnit unit)
    272272{
    273     // psPlane *lin;
     273    // psPlane* lin;
    274274    psProjection proj;
    275     psSphere *tmp;
     275    psSphere* tmp;
    276276    double tmpR = 0.0;
    277277    double tmpD = 0.0;
     
    313313        }
    314314
    315         tmp = (psSphere *) psAlloc(sizeof(psSphere));
     315        tmp = (psSphere* ) psAlloc(sizeof(psSphere));
    316316        tmp->r = tmpR;
    317317        tmp->d = tmpD;
     
    328328// Maybe, if the points are on the North/South Pole, etc?
    329329// XXX: I copied the algorithm from the ADD exactly.
    330 psSphere *psSphereSetOffset(const psSphere * restrict position,
    331                             const psSphere * restrict offset,
     330psSphere* psSphereSetOffset(const psSphere* restrict position,
     331                            const psSphere* restrict offset,
    332332                            psSphereOffsetMode mode, psSphereOffsetUnit unit)
    333333{
    334334    psPlane lin;
    335     psSphere *tmp;
     335    psSphere* tmp;
    336336    psProjection proj;
    337337    double tmpR = 0.0;
     
    368368        }
    369369
    370         tmp = (psSphere *) psAlloc(sizeof(psSphere));
     370        tmp = (psSphere* ) psAlloc(sizeof(psSphere));
    371371        tmp->r = position->r + tmpR;
    372372        tmp->r = position->d + tmpD;
Note: See TracChangeset for help on using the changeset viewer.