Transformation

Hi,
I want to rotate an object based on some position. ( It may based on center of the object or based on some other position.ex. (10,10,0) ). Is it possible?. Give me sample code.