Chromium Code Reviews| 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..64a9ca37f92dfefff8c5b95e35683677e7bf098e 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,8 @@ struct CartesianPoint { |
| using Point = CartesianPoint<float>; |
| +float GetMinimumSpacing(const std::vector<Point>& array_geometry); |
|
Andrew MacDonald
2015/10/19 22:35:07
Add a comment.
aluebs-webrtc
2015/10/20 00:17:07
Done.
|
| + |
| template<typename T> |
| float Distance(CartesianPoint<T> a, CartesianPoint<T> b) { |
| return std::sqrt((a.x() - b.x()) * (a.x() - b.x()) + |