lib/ruby_on_rays/matrix4x4.rb
# Returns the transpose of the matrix.
# @return [Matrix4x4]
Returns the transpose of the matrix.
Returns the transpose of the matrix .
def transpose
      Matrix4x4.new([@m[0], @m[4], @m[8],  @m[12],
                     @m[1], @m[5], @m[9],  @m[13],
                     @m[2], @m[6], @m[10], @m[14],
                     @m[3], @m[7], @m[11], @m[15]])
    end
def transpose Matrix4x4 . new ( [ @m [ 0 ] , @m [ 4 ] , @m [ 8 ] , @m [ 12 ] , @m [ 1 ] , @m [ 5 ] , @m [ 9 ] , @m [ 13 ] , @m [ 2 ] , @m [ 6 ] , @m [ 10 ] , @m [ 14 ] , @m [ 3 ] , @m [ 7 ] , @m [ 11 ] , @m [ 15 ] ] ) end
Returns the transpose of the matrix.
Returns the transpose of the matrix .
None
Matrix4x4