As the title asks . But moreover, how is SP different to being in Hypnagogic State?

Also, I once fell asleep sitting on a comfy cushion against the wall in the school library only to find I could not move or speak when I wanted to; is that SP?