Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,763

    Re: cos & sin 2d movement

    To see what the values are, write a loop that increments the degrees by 30 and goes from 0 to 360
    and prints out three columns of degrees, sin and cos.
  2. Replies
    7
    Views
    1,763

    Re: cos & sin 2d movement

    When I called toRadians() with degrees and used its value for the cos() and sin() methods, the results were as expected:

    System.out.println("cos(90)="+Math.cos(Math.toRadians(90)));
  3. Replies
    7
    Views
    1,763

    Re: cos & sin 2d movement

    This suggests that you have not read the API doc. Is the 270 degrees or radians?
  4. Replies
    7
    Views
    1,763

    Re: cos & sin 2d movement

    Have you read the API doc for those methods to see how they work?
Results 1 to 4 of 4