Thread: Math.atan2 ?
View Single Post
  #2   Spotlight this post!  
Unread 17-01-2010, 16:01
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Math.atan2 ?

Look in the package com.sun.squawk.util.MathUtils for extra math functions.

static double acos(double a)
Returns the arc cosine of an angle, in the range of 0 through pi.
static double asin(double a)
Returns the arc sine of an angle, in the range of -pi/2 through pi/2.
static double atan(double a)
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2.
static double atan2(double y, double x)
Converts rectangular coordinates (x, y) to polar (r, theta).
static double exp(double a)
Returns Euler's number e raised to the power of a double value.
static double expm1(double a)
Returns ex -1.
static double IEEEremainder(double x, double p)
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
static double log(double a)
Returns the natural logarithm (base e) of a double value.
static double log1p(double a)
Returns the natural logarithm of the sum of the argument and 1.
static double pow(double x, double y)
Returns the value of the first argument raised to the power of the second argument.
static double rint(double a)
Returns the double value that is closest in value to the argument and is equal to a mathematical integer.
static long round(double a)
Returns the closest long to the argument.
static int round(float a)
Returns the closest int to the argument.
static double scalbn(double x, int n)
performs x*2^n by exponent manipulation

(By language specification rules we aren't allowed to add non Java ME methods to the java.* package).
Reply With Quote