I'm new to GH and I'm sure there's an obvious way of doing this, but I can't quite figure it out.
This is to setup sightline sections for stadiums or theatres.
You have starting dimensions for D1, H1 and A1 that define the first eye point, P1.
Then a row width and a constant value for C that define the next eye point.
Angle 2 will then give Height 2, Height 2 gives Angle 3 etc...
You can easily do this as a series of functions that follow on from each other,
but there could be a very large number of these, and also a variable number, not a great way to do it.
What I really want is three series that output numbers to define values for Distance, Height and Angle.
D can be defined as a series, but H and A need to be calculated sequentially.
A2 gives H2, then H2 gives A3 etc... One series needs to the input of the other and vice versa. Doesn't work with Logic/sets/series as you end up with circular inputs.
Any ideas on best way to set this up greatly appreciated.
Could you set up the series to define D and also use another series for the angle since it is changing at a constant rate?
Use these two series, D and theta, to then calculate H = D * Tan(theta). Then you'll have the height of line H and location (end point of D) and you can complete the triangle.
is there a formula you could use to determine the angle in terms of D? or would it make sense to use the angle as a variable? im having trouble understanding without a partial definition... do you have one?