8000 Insert missing documentation · VXAPPS/sqlite_functions@7f21303 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f21303

committed
Insert missing documentation
Remove file from list
1 parent 5e2ff3d commit 7f21303

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

source/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
project(sqlite_functions)
3232

3333
add_library(${PROJECT_NAME}
34-
../.github/workflows/linux.yml
35-
../.github/workflows/macos.yml
36-
../.github/workflows/windows.yml
37-
../README.md
3834
SqliteError.h
3935
SqliteUtils.cpp
4036
SqliteUtils.h
@@ -76,4 +72,4 @@ add_custom_target(${PROJECT_NAME}_workflows
7672
../.github/workflows/macos.yml
7773
# ../.github/workflows/windows-codeql.yml
7874
../.github/workflows/windows.yml
79-
)
75+
)

source/SqliteUtils.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ namespace std { // NOSONAR
6666

6767
namespace vx::sqlite_utils {
6868

69+
/**
70+
* @brief Degrees of a half round move.
71+
*/
6972
constexpr std::int32_t halfCircleDegree = 180;
7073

74+
/**
75+
* @brief Earth km.
76+
*/
7177
constexpr double earthBlubKm = 6378.137;
7278

7379
#ifdef WIN32
@@ -266,7 +272,11 @@ namespace vx::sqlite_utils {
266272
return {};
267273
}
268274

269-
static double pi() { return std::atan(1)*4; }
275+
/**
276+
* @brief Generate own PI.
277+
* @return Calculated pi value.
278+
*/
279+
static double pi() { return std::atan( 1 ) * 4; }
270280

271281
void distance( sqlite3_context *_context,
272282
std::int32_t _argc,

0 commit comments

Comments
 (0)
0