Searched refs:east (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/libs/math/tests/ |
D | vec_test.cpp | 238 vec3 east(1, 0, 0); in TEST_F() local 240 vec3 up(cross(east, north)); in TEST_F() 242 EXPECT_EQ(dot(east, north), 0); in TEST_F() 243 EXPECT_EQ(length(east), 1); in TEST_F() 244 EXPECT_EQ(distance(east, north), sqrtf(2)); in TEST_F() 251 float3 vf(east); in TEST_F()
|
/frameworks/native/services/sensorservice/ |
D | Fusion.cpp | 295 vec3_t east; in checkInitComplete() local 298 east = normalize(cross_product(mData[1], up)); in checkInitComplete() 300 east = getOrthogonal(up); in checkInitComplete() 303 vec3_t north(cross_product(up, east)); in checkInitComplete() 304 R << east << north << up; in checkInitComplete() 371 const vec3_t east( cross_product(m, up) ); in handleMag() local 377 if (length_squared(east) < MIN_VALID_CROSS_PRODUCT_MAG_SQ) { in handleMag() 383 vec3_t north( cross_product(up, east) ); in handleMag()
|