template to code the offset rotation workspace transformation algorithm