# Maths.Constants class

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class Maths.Constants
```

Central collection of all constant values known to Grasshopper. Plugins may add constant values on load. Note that is primarily a User-Interface collection, the [Maths.Constants](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.constants.md) class contains a lot of the numeric constants directly usable in code.

## Properties

- [All](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.constants/all.md): (static) Enumerate over all constants.

## Methods

- [AddCustomConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.constants/addcustomconstant.md): (static) Add a custom constant to the central list.
- [TryFind](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.constants/tryfind.md): (static) Try and find the constant which best matches a given name.
