[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-users] how to transcode voxel index vidx to voxel dim index i, j, k ?



you can use:


//! Calculate dimension index of a given location                                                                       
  /** \param[in] v The position (in angstroms)                                                                            
      \param[in] ind dimension index (X:0,Y:1 or Z:2)                                                                     
   */                                                                                                                     
  int get_dim_index_by_location(const algebra::VectorD<3> &v,int ind) const;



On Feb 4, 2011, at 6:05 AM, Benjamin SCHWARZ wrote:

> Hi list,
> 
>   I couldn't find the function that computes the "index coordinates" of a voxel from its voxel index (somehow, the opposite of xyz_ind2voxel() function.) do you know if there is any ?
> 
>     --Ben
> _______________________________________________
> IMP-users mailing list
> 
> https://salilab.org/mailman/listinfo/imp-users