A boy whiffs a ball with a bat.
The boy is swinging a bat.
Whiffs a ball implies swinging a bat.
Whiffs a ball with a bat is a rephrasing of is swinging a bat.
Swinging a bat is the same as whiffs a ball.