Method: Mittsu::Matrix3#apply_to_vector3_array
- Defined in:
- lib/mittsu/math/matrix3.rb
#apply_to_vector3_array(array, offset = 0, length = array.length) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/mittsu/math/matrix3.rb', line 44 def apply_to_vector3_array(array, offset = 0, length = array.length) v1 = Mittsu::Vector3.new i, j = 0, offset while i < length v1.x = array[j] v1.y = array[j + 1] v1.z = array[j + 2] v1.apply_matrix3(self) array[j] = v1.x array[j + 1] = v1.y array[j + 2] = v1.z i += 3 j += 3 end array end |