Method: Mittsu::Matrix3#flatten_to_array_offset
- Defined in:
- lib/mittsu/math/matrix3.rb
#flatten_to_array_offset(array, offset) ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/mittsu/math/matrix3.rb', line 113 def flatten_to_array_offset(array, offset) te = self.elements array[offset ] = te[0] array[offset + 1] = te[1] array[offset + 2] = te[2] array[offset + 3] = te[3] array[offset + 4] = te[4] array[offset + 5] = te[5] array[offset + 6] = te[6] array[offset + 7] = te[7] array[offset + 8] = te[8] array end |