Skip to content

Commit 3e9dbf2

Browse files
authored
Consistently return degrees from EllipsoidModel::convertECEFToLatLongAltitude
Without this change, convertECEFToLatLongAltitude gives results in radians when ECEF x component is zero, but in degrees for all other values.
1 parent d3edfd4 commit 3e9dbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vsg/app/EllipsoidModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ dvec3 EllipsoidModel::convertECEFToLatLongAltitude(const dvec3& ecef) const
9494
latitude = PI_2;
9595
height = -_radiusPolar;
9696
}
97-
return dvec3(latitude, longitude, height);
97+
return dvec3(degrees(latitude), degrees(longitude), height);
9898
}
9999
}
100100

0 commit comments

Comments
 (0)