Class Math
Inheritance
java.lang.Object
Math
Syntax
Fields
PI
Declaration
public static final double PI= java.lang.Math.PI
Field Value
Type |
Description |
final double |
|
Methods
abs(double r)
Declaration
public static double abs(double r)
Parameters
Type |
Name |
Description |
double |
r |
|
Returns
abs(float r)
Declaration
public static float abs(float r)
Parameters
Type |
Name |
Description |
float |
r |
|
Returns
abs(int r)
Declaration
public static int abs(int r)
Parameters
Type |
Name |
Description |
int |
r |
|
Returns
acos(double r)
Declaration
public static double acos(double r)
Parameters
Type |
Name |
Description |
double |
r |
|
Returns
asin(double r)
Declaration
public static double asin(double r)
Parameters
Type |
Name |
Description |
double |
r |
|
Returns
atan2(double y, double x)
Declaration
public static double atan2(double y, double x)
Parameters
Type |
Name |
Description |
double |
y |
|
double |
x |
|
Returns
ceil(double v)
Declaration
public static double ceil(double v)
Parameters
Type |
Name |
Description |
double |
v |
|
Returns
ceil(float v)
Declaration
public static float ceil(float v)
Parameters
Type |
Name |
Description |
float |
v |
|
Returns
cos(double rad)
Declaration
public static double cos(double rad)
Parameters
Type |
Name |
Description |
double |
rad |
|
Returns
cosFromSin(double sin, double angle)
Declaration
public static double cosFromSin(double sin, double angle)
Parameters
Type |
Name |
Description |
double |
sin |
|
double |
angle |
|
Returns
exp(double a)
Declaration
public static double exp(double a)
Parameters
Type |
Name |
Description |
double |
a |
|
Returns
floor(double v)
Declaration
public static double floor(double v)
Parameters
Type |
Name |
Description |
double |
v |
|
Returns
floor(float v)
Declaration
public static float floor(float v)
Parameters
Type |
Name |
Description |
float |
v |
|
Returns
isFinite(double d)
Declaration
public static boolean isFinite(double d)
Parameters
Type |
Name |
Description |
double |
d |
|
Returns
isFinite(float f)
Declaration
public static boolean isFinite(float f)
Parameters
Type |
Name |
Description |
float |
f |
|
Returns
max(double a, double b)
Declaration
public static double max(double a, double b)
Parameters
Type |
Name |
Description |
double |
a |
|
double |
b |
|
Returns
max(float a, float b)
Declaration
public static float max(float a, float b)
Parameters
Type |
Name |
Description |
float |
a |
|
float |
b |
|
Returns
max(int x, int y)
Declaration
public static int max(int x, int y)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Returns
min(double a, double b)
Declaration
public static double min(double a, double b)
Parameters
Type |
Name |
Description |
double |
a |
|
double |
b |
|
Returns
min(float a, float b)
Declaration
public static float min(float a, float b)
Parameters
Type |
Name |
Description |
float |
a |
|
float |
b |
|
Returns
min(int x, int y)
Declaration
public static int min(int x, int y)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Returns
round(double v)
Declaration
public static long round(double v)
Parameters
Type |
Name |
Description |
double |
v |
|
Returns
round(float v)
Declaration
public static int round(float v)
Parameters
Type |
Name |
Description |
float |
v |
|
Returns
sin(double rad)
Declaration
public static double sin(double rad)
Parameters
Type |
Name |
Description |
double |
rad |
|
Returns
sqrt(double r)
Declaration
public static double sqrt(double r)
Parameters
Type |
Name |
Description |
double |
r |
|
Returns
tan(double r)
Declaration
public static double tan(double r)
Parameters
Type |
Name |
Description |
double |
r |
|
Returns
toDegrees(double angles)
Declaration
public static double toDegrees(double angles)
Parameters
Type |
Name |
Description |
double |
angles |
|
Returns
toRadians(double angles)
Declaration
public static double toRadians(double angles)
Parameters
Type |
Name |
Description |
double |
angles |
|
Returns