# GradientField class

Namespace: [Grasshopper2.Types.Fields.Standard](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.fields.standard.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-92c4-4fd5-8d7b-e04db035c340")]
public class GradientField : DerivedField
```

The gradient value of a scalar field.

## Constructors

- [GradientField](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/ctor.md): (2 overloads) Create a new gradient field.

## Properties

- [DefaultRadius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/defaultradius.md): (static)
- [Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/name.md)
- [Radius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/radius.md): Gets the sampling radius of this field.
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/type.md)

## Methods

- [ScalarAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/scalarat.md): Evaluate the field scalar component at a specific point in space. If this is a vector-field, the returned value is *probably* the magnitude of the vector, but this is not guaranteed.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/store.md)
- [VectorAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.gradientfield/vectorat.md): Evaluate the field vector component at a specific point in space. If this is a scalar-field, the returned value is *probably* a vector in the form (0,0,scalar), but this is not guaranteed.

## Inherited Members

- From [DerivedField](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.derivedfield.md): [Underlying](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.derivedfield/underlying.md)
- From [Field](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field.md): [FormatLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/formatlabel.md), [Format](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/format.md), [ModifierArguments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/modifierarguments.md), [Trace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/trace.md), [TryModify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/trymodify.md)
