41 lines
915 B
C++
41 lines
915 B
C++
/**
|
|
* @file navigationUtils.cpp
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2022-03-24
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
|
|
#include "navigationUtils.h"
|
|
|
|
double NavigationUtils::getCurrentCourse(Point p1) {
|
|
//TODO: write it!!!
|
|
return 0;
|
|
}
|
|
|
|
void NavigationUtils::setLastPoint(Point p1) {
|
|
this->lastPoint = p1;
|
|
}
|
|
|
|
|
|
double NavigationUtils::courseTo(Point p1, Point p2) {
|
|
//TODO: write it!!!
|
|
return 0;
|
|
}
|
|
|
|
double NavigationUtils::courseTo(double lat1, double lon1, double lat2, double lon2) {
|
|
return NavigationUtils::courseTo(Point(lat1, lon1), Point(lat2, lon2));
|
|
}
|
|
|
|
double NavigationUtils::distanceBetween(Point p1, Point p2) {
|
|
//TODO: write it!!!
|
|
return 0;
|
|
}
|
|
|
|
double NavigationUtils::distanceBetween(double lat1, double lon1, double lat2, double lon2) {
|
|
return NavigationUtils::distanceBetween(Point(lat1, lon1), Point(lat2, lon2));
|
|
}
|