[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [femm] [How can I use "sine function" in lua script?]
Hello,
In Lua, angles are in degree :-)
Tsarafidy
--- khmr8425 <khmr8425@xxxxxxxxxxx> a écrit :
---------------------------------
Mr.David,
Can I use sine or cosine function in lua file? I used
like followings.
But there are some errors. I want to know the reason
why.
[lua script]
...
point_x = 50 * math_cos(delta*pi/180)
point_y = 50 * math_sin(delta*pi/180)
addnode(pointx, pointy)
...
Could you tell me the reason and solution?
Thanks.
Kang ho
Yahoo! Groups Sponsor
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com