| Index: webrtc/modules/audio_processing/beamformer/array_util.h
|
| diff --git a/webrtc/modules/audio_processing/beamformer/array_util.h b/webrtc/modules/audio_processing/beamformer/array_util.h
|
| index f7598c0b5d2f7268c95a771ef65e52ce7d63d7c6..2ac174ea8aa04800995551d03017c9d215415921 100644
|
| --- a/webrtc/modules/audio_processing/beamformer/array_util.h
|
| +++ b/webrtc/modules/audio_processing/beamformer/array_util.h
|
| @@ -12,6 +12,7 @@
|
| #define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_ARRAY_UTIL_H_
|
|
|
| #include <cmath>
|
| +#include <vector>
|
|
|
| namespace webrtc {
|
|
|
| @@ -31,6 +32,10 @@ struct CartesianPoint {
|
|
|
| using Point = CartesianPoint<float>;
|
|
|
| +// Returns the minimum distance between any two Points in the given
|
| +// |array_geometry|.
|
| +float GetMinimumSpacing(const std::vector<Point>& array_geometry);
|
| +
|
| template<typename T>
|
| float Distance(CartesianPoint<T> a, CartesianPoint<T> b) {
|
| return std::sqrt((a.x() - b.x()) * (a.x() - b.x()) +
|
|
|