GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Will this value be in radians or degrees?

abuabed84abuabed84 Posts: 533Member, PRO
edited August 2016 in Working with GS (Mac)

I want to use an attribute inside a Sin function.
But I'm not sure if it will be used as radians or degrees.

Comments

  • SocksSocks London, UK.Posts: 12,822Member
    edited August 2016

    @abuabed84 said:
    I want to use an attribute inside a Sin function.
    But I'm not sure if it will be used as radians or degrees.

    The sin function will read the angle in degrees.

    Also, 4sin(x) is an invalid expression, '4sin' doesn't mean anything, do you mean 4*sin(x) ?

  • abuabed84abuabed84 Posts: 533Member, PRO

    Also, 4sin(x) is an invalid expression, '4sin' doesn't mean anything, do you mean 4*sin(x) ?

    No wonder it didn't work lol

  • zweg25zweg25 Posts: 738Member

    To convert from radians to degrees you multiply your x radians by 180/pi

    To convert from degrees to radians you multiply your x degrees by pi/180

Sign In or Register to comment.