rotated method

Execute rotated(
  1. dynamic rot
)

Sets the execution rotation to the given rotation.

Implementation

Execute rotated(dynamic rot) {
  if (rot is Rotation) {
    return _addArgumentRet('rotated $rot');
  }
  if (rot is Entity) {
    return _addArgumentRet('rotated as $rot');
  }
  throw ('Please insert either a Rotation or an Entity into Execute.rotated');
}