Skip to content
Snippets Groups Projects
Commit 55969fb2 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

implement the Riemannian distance

[[Imported from SVN: r5530]]
parent 6a290e0d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,11 @@ public:
return *this;
}
/** \brief Length of the great arc connecting the two points */
static double distance(const UnitVector& a, const UnitVector& b) {
return std::acos(a.data_ * b.data_);
}
/** \brief Write LocalKey object to output stream */
friend std::ostream& operator<< (std::ostream& s, const UnitVector& unitVector)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment