// Rotate rotates the vault content n times by 90 degrees counter-clockwise (or
// clockwise for negative n values).  The result's size has dimensions
// exchanged for odd n.
Rotate rotates the vault content n times by 90 degrees counter-clockwise (or
clockwise for negative n values).  The result's size has dimensions
exchanged for odd n.
// Rotate rotates the vault content n times by 90 degrees counter - clockwise ( or // clockwise for negative n values ) . The result ' s size has dimensions // exchanged for odd n .
func (v *Vault) Rotate(n int) {
	n %= 4
	if n < 0 {
		n = 4 + n
	}
	switch n {
	case 1:
		v.rotate90()
	case 2:
		v.rotate180()
	case 3:
		v.rotate180()
		v.rotate90()
	}
}
func ( v * Vault ) Rotate ( n int ) { n %= 4 if n < 0 { n = 4 + n } switch n { case 1 : v . rotate90 ( ) case 2 : v . rotate180 ( ) case 3 : v . rotate180 ( ) v . rotate90 ( ) } }
Rotate rotates the vault content n times by 90 degrees counter-clockwise (or
clockwise for negative n values).
Rotate rotates the vault content n times by 90 degrees counter - clockwise ( or clockwise for negative n values ) .