Commit 7eb8541d authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

correction

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2231
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 8d8c0554
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: offset.cc,v 1.1 2007-03-02 11:13:33 tforb Exp $
* $Id: offset.cc,v 1.2 2007-03-02 11:17:41 tforb Exp $
* \author Thomas Forbriger
* \date 02/03/2007
*
......@@ -35,7 +35,7 @@
#define TF_OFFSET_CC_VERSION \
"TF_OFFSET_CC V1.0 "
#define TF_OFFSET_CC_CVSID \
"$Id: offset.cc,v 1.1 2007-03-02 11:13:33 tforb Exp $"
"$Id: offset.cc,v 1.2 2007-03-02 11:17:41 tforb Exp $"
#include <cmath>
#include <sffxx.h>
......@@ -44,8 +44,8 @@
namespace sff {
//! return offset in meters
double offset(const SRCE& srce, const INFO& info;
const double& radius=6371.)
double offset(const SRCE& srce, const INFO& info,
const double& radius)
{
double retval;
TFXX_assert((srce.cs == info.cs),
......@@ -78,12 +78,12 @@ namespace sff {
//! return offset in degrees
double offsetdeg(const SRCE& srce, const INFO& info,
const double& radius=6371.);
const double& radius)
{
double retval=offsetm(srce, info, radius)*1.e-3*360./(2.*PI*radius);
double retval=offset(srce, info, radius)*1.e-3*360./(2.*M_PI*radius);
return(retval);
} // double offsetdeg(const SRCE& srce, const INFO& info,
// const double& radius=6371.);
// const double& radius=6371.)
} // namespace sff
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sffxx.h,v 1.32 2007-03-02 11:13:34 tforb Exp $
* $Id: sffxx.h,v 1.33 2007-03-02 11:17:41 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2003
*
......@@ -49,7 +49,7 @@
#define TF_SFFXX_H_VERSION \
"TF_SFFXX_H V1.6"
#define TF_SFFXX_H_CVSID \
"$Id: sffxx.h,v 1.32 2007-03-02 11:13:34 tforb Exp $"
"$Id: sffxx.h,v 1.33 2007-03-02 11:17:41 tforb Exp $"
#include<string>
#include<cmath>
......@@ -535,7 +535,7 @@ namespace sff {
sff::SRCE srce_reference();
//! return offset in meters
double offset(const SRCE& srce, const INFO& info;
double offset(const SRCE& srce, const INFO& info,
const double& radius=6371.);
//! return offset in degrees
double offsetdeg(const SRCE& srce, const INFO& info,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment