lua-users home
lua-l archive

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


2014-04-04 10:04 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:

>> - deg, rad, pow: trivially done without the library.
>
> These may go. They are remnants of languages that have neither
> an exponentiation operator nor math.pi.

Perhaps I should share what I do, since I regard it as more
readable than all those math.rad calls:

    local degrees=math.pi/180
    local x = r*cos(60*degrees)