Searched refs:ArePerpendicular (Results 1 – 3 of 3) sorted by relevance
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | array_util_unittest.cc | 73 TEST(ArrayUtilTest, ArePerpendicular) { in TEST() argument 74 EXPECT_TRUE(ArePerpendicular(Point(0.f, 0.f, 0.f), Point(1.f, 2.f, 3.f))); in TEST() 75 EXPECT_TRUE(ArePerpendicular(Point(1.f, 0.f, 2.f), Point(0.f, 3.f, 0.f))); in TEST() 76 EXPECT_TRUE(ArePerpendicular(Point(1.f, 2.f, 0.f), Point(1.f, -0.5f, 0.f))); in TEST() 77 EXPECT_FALSE(ArePerpendicular(Point(1.f, -2.f, 3.f), Point(-3.f, 2.f, -1.f))); in TEST() 78 EXPECT_FALSE(ArePerpendicular(Point(1.f, 0.f, 0.f), Point(2.f, 0.f, 0.f))); in TEST() 79 EXPECT_FALSE(ArePerpendicular(Point(1.f, 2.f, 3.f), Point(-2.f, -4.f, -6.f))); in TEST()
|
D | array_util.cc | 55 bool ArePerpendicular(const Point& a, const Point& b) { in ArePerpendicular() function 95 if (!ArePerpendicular(normal_direction, pair_direction)) { in GetNormalIfPlanar()
|
D | array_util.h | 54 bool ArePerpendicular(const Point& a, const Point& b);
|