Search:

Type: Posts; User: olemagro

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    14,971

    Re: cosine in java

    Ah, didn't know that. Noted to self!

    Edit: Come to think of it, I knew it but didn't consider the fact that int doesn't allow decimals which is crucial in most sine/cosine functions.
  2. Replies
    4
    Views
    14,971

    Re: cosine in java

    Unless you intend to draw the graph using Graphics2D, the math class contains the sine and cosine functions. They do however only work with radians, so you'll need a converted variable if you intend...
Results 1 to 2 of 2