Maths.Constants

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 class contains a lot of the numeric constants directly usable in code.

Properties

All

#
Enumerate over all constants.
public static IEnumerable<Maths.Constant> All { get; }

Methods

AddCustomConstant

#
Add a custom constant to the central list.
public static bool AddCustomConstant(
constant
Constant to add.
)
Success of addition.

TryFind

#
Try and find the constant which best matches a given name.
public static Maths.Constant TryFind(
name
)