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

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

Methods

AddCustomConstant

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

TryFind

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