public final class Maths extends Object
| Modifier and Type | Method and Description |
|---|---|
static float |
cos(float rad)
Returns the trigonometric cosine of a radians.
|
static float |
sin(float rad)
Returns the trigonometric sine of a radians.
|
static float |
toRadians(double degree)
Converts an angle measured in degrees to an
approximately equivalent angle measured in radians.
|
public static float sin(float rad)
rad - the radians to get a sine ofpublic static float cos(float rad)
rad - the radians to get a cosine ofpublic static float toRadians(double degree)
degree - the degree to be converted to radiansCopyright © 2020. All rights reserved.