NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
geocentricRadius.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <cmath>
31
34#include "NumCpp/Utils/sqr.hpp"
35
37{
44 [[nodiscard]] inline double geocentricRadius(const reference_frames::LLA& point) noexcept
45 {
46 const auto cosLat = std::cos(point.latitude);
47 const auto sinLat = std::sin(point.latitude);
52 }
53} // namespace nc::coordinates::transforms
Geodetic coordinates.
Definition: LLA.hpp:40
constexpr double EARTH_POLAR_RADIUS
Definition: Coordinates/ReferenceFrames/Constants.hpp:33
constexpr double EARTH_EQUATORIAL_RADIUS
Definition: Coordinates/ReferenceFrames/Constants.hpp:34
Definition: AERtoECEF.hpp:38
double geocentricRadius(const reference_frames::LLA &point) noexcept
Returns the geocentric radius.
Definition: geocentricRadius.hpp:44
constexpr dtype sqr(dtype inValue) noexcept
Definition: sqr.hpp:42
auto sin(dtype inValue) noexcept
Definition: sin.hpp:49
auto cos(dtype inValue) noexcept
Definition: cos.hpp:49
auto sqrt(dtype inValue) noexcept
Definition: sqrt.hpp:48