Calculate angle offset automatically if not given