Patch Based Rotation added to library

patchRotate(), documented in sdk.