Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/core_extensions/array.rb

Overview

Convenience extensions for core array

Instance Method Summary collapse

Instance Method Details

#to_mObject


10
11
12
# File 'lib/core_extensions/array.rb', line 10

def to_m
  GSLng::Matrix.from_array self
end

#to_vObject


6
7
8
# File 'lib/core_extensions/array.rb', line 6

def to_v
  GSLng::Vector.from_array self
end