public int rawPositionToWheelPosition ( int position , int adapterPosition ) { int circularOffset = mIsRepeatable ? ( ( int ) Math . floor ( ( position / ( float ) mAdapterItemCount ) ) * ( mAdapterItemCount - mItemCount ) ) : 0 ; return Circle . clamp ( adapterPosition + circularOffset , mItemCount ) ; }
Converts the raw position to a position within the wheel item bounds .