[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [femm] [How can I use "sine function" in lua script?]

- To: femm@yahoogroups.com
- Subject: Re: [femm] [How can I use "sine function" in lua script?]
- From: Tsarafidy RAMINOSOA <tsarafidy@yahoo.fr>
- Date: Mon, 16 Jun 2003 15:05:41 +0200 (CEST)
- In-reply-to: <bckd56+2e9r@eGroups.com>

    Hello,

    In Lua, angles are in degree :-)

    Tsarafidy

    --- khmr8425 <khmr8425@yahoo.co.kr> 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

- References:
  - [How can I use "sine function" in lua script?]
    - From: "khmr8425" <khmr8425@yahoo.co.kr>

- Prev by Date: femm source
- Next by Date: Re: [femm] [How can I use "sine function" in lua script?]
- Previous by thread: [How can I use "sine function" in lua script?]
- Next by thread: Re: [femm] [How can I use "sine function" in lua script?]
- Index(es):
  - Date
  - Thread