Searched refs:SmallestAngleBetweenVectors (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/cc/base/
H A Dmath_util_unittest.cc72 TEST(MathUtilTest, SmallestAngleBetweenVectors) {
78 EXPECT_EQ(90, MathUtil::SmallestAngleBetweenVectors(x, y));
81 EXPECT_EQ(0, MathUtil::SmallestAngleBetweenVectors(x, x));
82 EXPECT_EQ(0, MathUtil::SmallestAngleBetweenVectors(y, y));
83 EXPECT_EQ(0, MathUtil::SmallestAngleBetweenVectors(test_vector, test_vector));
86 EXPECT_FLOAT_EQ(180, MathUtil::SmallestAngleBetweenVectors(x, -x));
87 EXPECT_FLOAT_EQ(180, MathUtil::SmallestAngleBetweenVectors(y, -y));
89 180, MathUtil::SmallestAngleBetweenVectors(test_vector, -test_vector));
93 45, std::floor(MathUtil::SmallestAngleBetweenVectors(test_vector, x)));
95 45, std::floor(MathUtil::SmallestAngleBetweenVectors(test_vecto
[all...]
H A Dmath_util.h187 static float SmallestAngleBetweenVectors(const gfx::Vector2dF& v1,
H A Dmath_util.cc676 float MathUtil::SmallestAngleBetweenVectors(const gfx::Vector2dF& v1, function in class:cc::MathUtil
/external/chromium_org/cc/trees/
H A Dlayer_tree_host_impl.cc2598 if (MathUtil::SmallestAngleBetweenVectors(

Completed in 83 milliseconds