How to calculate velocity and rotation of a rigidbody2D?

I am trying to create an asteroids like game, I would like to make if statements that rely on velocity of the ship, but I don’t what c# code to retrieve the velocity, in order to tell if the ship is moving and the direction it is (forward or backward). Also how would I fetch the rotation to see if the ship is rotating and which direction (left or right). Please help and thank you!

The velocity and angularVelocity are variables of a Rigidbody2D. Are these usefull for your project?