Ignore:
Timestamp:
Jun 15, 2004, 6:54:12 PM (21 years ago)
Author:
cmv
Message:

nouvelle version de xephem/libastro (3.6) cmv 15/6/04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/sphcart.c

    r1719 r2551  
    11#include <math.h>
    2 #include "P_.h"
     2#include <stdio.h>
     3
    34#include "astro.h"
    45
    56/* transformation from spherical to cartesian coordinates */
    67void
    7 sphcart (l, b, r, x, y, z)
    8 double l, b, r;         /* source: spherical coordinates */
    9 double *x, *y, *z;      /* result: rectangular coordinates */
     8sphcart (
     9double l, double b, double r,           /* source: spherical coordinates */
     10double *x, double *y, double *z)        /* result: rectangular coordinates */
    1011{
    1112        double rcb = r * cos(b);
     
    1819/* transformation from cartesian to spherical coordinates */
    1920void
    20 cartsph (x, y, z, l, b, r)
    21 double x, y, z;         /* source: rectangular coordinates */
    22 double *l, *b, *r;      /* result: spherical coordinates */
     21cartsph (
     22double x, double y, double z,           /* source: rectangular coordinates */
     23double *l, double *b, double *r)        /* result: spherical coordinates */
    2324{
    2425        double rho = x*x + y*y;
     
    4041
    4142/* For RCS Only -- Do Not Edit */
    42 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sphcart.c,v $ $Date: 2001-10-22 12:08:28 $ $Revision: 1.2 $ $Name: not supported by cvs2svn $"};
     43static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sphcart.c,v $ $Date: 2004-06-15 16:52:40 $ $Revision: 1.3 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.