How do you rotate shapes 90 degrees clockwise about the origin?

Move each point with the coordinates (a, b) to the location (b, -a).Equivalently, if the points are represented by a 2x1 column matrix, then pre-multiply by the matrix

( 0 1)

(-1 0)