From the course: Learning Grasshopper

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

How to use mathematical constant components in Grasshopper

How to use mathematical constant components in Grasshopper

From the course: Learning Grasshopper

Start my 1-month free trial

How to use mathematical constant components in Grasshopper

- [Instructor] In this video, we'll take a look at mathematical constants in Grasshopper. The constant components are found under the Math component panel in the Util sub-menu. And these components return mathematical constant numbers, things like pi, the natural logarithm, the golden ratio, and a couple others. In our example here, I'm using the pi constant combined with a factor to make an angle measurement that feeds into this arc component. So you can see right now we're multiplying 1.5 times pi and that feeds into the angle, giving us an arc that starts at zero and travels to 1.5 times pi radians. And you can see, as I change the valleys on the slider, I'll get different spans of the arc. Now, in addition to pulling in constants as standalone components, Grasshopper's also smart enough to recognize things that we write into a panel. So you can see right here I'm getting a little taste of that where my panel is…

Contents