def cosines=(array)
      raise ArgumentError, "Invalid parameter 'array'. Exactly 6 elements needed, got #{array.length}" unless array.length == 6
      @cosines = array.collect {|val| val.to_f}
    end
def cosines=(array)
      raise ArgumentError, "Invalid parameter 'array'. Exactly 6 elements needed, got #{array.length}" unless array.length == 6
      @cosines = array.collect {|val| val.to_f}
    end
Sets the cosines attribute.

 @param [Array<Float>] array the 6 directional cosines which describes the orientation of the image