Skip to main content

rotated

Method of RealMatrix.

rotated() -> RealMatrix

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

Example

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