public static TCommand Rotate <TCommand>(this ISimpleMovementRules <TCommand> factory, Angle angle) where TCommand : ISimpleMovementCommand, new() { return(new TCommand { SimpleMovement = SimpleMovement.RotateWithVelocity(angle, factory.AngularVelocityLimit) }); }
public static TCommand RotateAngleWithVelocity <TCommand>(this ISimpleMovementRules <TCommand> factory, Angle angle, Angle velocity) where TCommand : ISimpleMovementCommand, new() { return(new TCommand { SimpleMovement = SimpleMovement.RotateWithVelocity(angle, velocity) }); }