Parametric design in MoI?

 From:  James (JFH)
7713.907 In reply to 7713.905 
Psygorn,

quote:
Why does it seem that the floor function doesn't work properly?

It is working properly...given that sin(117) / 2 = -0.34, the floor value will be -1

quote:
How can I get 1 for values of A from 0 to 180, and -1 for values of A from 181 to 360?

Firstly, if working with degrees use square brackets : sin[a] because they convert degrees to radians
used by trigonometric functions.

If you imagine a point revolving around a circle, at any point the sine of the angle: sin[a]
equals the y component / radius, so regardless of the radius the result will be 0 on the horizontal axis
and 1 & -1 at top & bottom of the vertical axis respectively, and the points in-between will give a result
ranging from -1 to 1

There is a lot of better explanation of trigonometric functions online, here is the wikipedia page:
https://en.wikipedia.org/wiki/Sine_and_cosine

James
https://www.instagram.com/nodeology/

EDITED: 6 Apr 2022 by JFH