a question about vtkImplicitFunction::EvaluateGradient

I think g is already a pointer,I roughly understand how to return a gradient,But I still don’t understand what the gradient does?