Lines Matching refs:angle
521 static void setRotationMatrix(float matrix[9], float angle) { in setRotationMatrix() argument
522 float sin = sinf(angle); in setRotationMatrix()
523 float cos = cosf(angle); in setRotationMatrix()
551 float angle = float(i * ARC * PI_180); in TEST_F() local
555 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); in TEST_F()
556 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2); in TEST_F()
557 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle); in TEST_F()
583 float angle = float((i * ARC + ROTATION) * PI_180); in TEST_F() local
584 ASSERT_NEAR(sinf(angle) * RADIUS, event.getX(i), 0.001); in TEST_F()
585 ASSERT_NEAR(-cosf(angle) * RADIUS, event.getY(i), 0.001); in TEST_F()
586 ASSERT_NEAR(tanf(angle), tanf(event.getOrientation(i)), 0.1); in TEST_F()