From 6418ba16669bf50f7b813e0c0cb818746254aab8 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Thu, 3 Jan 2019 15:28:04 +0100 Subject: Rename PJ_IO_UNITS_ANGULAR to PJ_IO_UNITS_RADIANS This communicates better what the unit actually is. It also opens the door for potentially adding PJ_IO_UNITS_DEGREES in the future in order to coordinates in degrees correctly as well. --- src/fwd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fwd.cpp') diff --git a/src/fwd.cpp b/src/fwd.cpp index 02f31f87..a8c51934 100644 --- a/src/fwd.cpp +++ b/src/fwd.cpp @@ -48,7 +48,7 @@ static PJ_COORD fwd_prepare (PJ *P, PJ_COORD coo) { if (HUGE_VAL==coo.v[3] && P->helmert) coo.v[3] = 0.0; /* Check validity of angular input coordinates */ - if (INPUT_UNITS==PJ_IO_UNITS_ANGULAR) { + if (INPUT_UNITS==PJ_IO_UNITS_RADIANS) { double t; /* check for latitude or longitude over-range */ @@ -135,7 +135,7 @@ static PJ_COORD fwd_finalize (PJ *P, PJ_COORD coo) { case PJ_IO_UNITS_WHATEVER: break; - case PJ_IO_UNITS_ANGULAR: + case PJ_IO_UNITS_RADIANS: coo.lpz.z = P->vfr_meter * (coo.lpz.z + P->z0); if( P->is_long_wrap_set ) { -- cgit v1.2.3