Skip to main content

rotate

Method of RealMatrix.

rotate() -> RealMatrix

Returns a (counter-clockwise) rotated copy of the RealMatrix.

Example

var a = RealMatrix([[1,3],[2,4]])
// prints
// 1 2
// 3 4
a.rotate
// prints
// 2 4
// 1 3