MeVisLab Toolbox Reference
mlLargestPointDistance2D.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2016, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
16 #include <mlVector2.h>
17 #include <vector>
18 
19 ML_START_NAMESPACE
20 
21 namespace LargestPointDistance2D
22 {
27  MLPOINTCLOUDUTILS_EXPORT double largestDistanceSquared(const std::vector<Vector2>& points, Vector2& point0, Vector2& point1);
28 
34  MLPOINTCLOUDUTILS_EXPORT double largestDistanceSquaredFromSortedPoints(const std::vector<Vector2>& points, Vector2& point0, Vector2& point1);
35 
36 }
37 
38 ML_END_NAMESPACE
#define MLPOINTCLOUDUTILS_EXPORT
MLPOINTCLOUDUTILS_EXPORT double largestDistanceSquaredFromSortedPoints(const std::vector< Vector2 > &points, Vector2 &point0, Vector2 &point1)
Calculates the largest distance (squared) between any of the given points.
MLPOINTCLOUDUTILS_EXPORT double largestDistanceSquared(const std::vector< Vector2 > &points, Vector2 &point0, Vector2 &point1)
Calculates the largest distance (squared) between any of the given points.