|
Static Public Member Functions |
static double | addAngle (double ang1, double ang2) |
| This adds two angles together and fixes the result to [-180, 180].
|
static bool | angleBetween (double angle, double startAngle, double endAngle) |
| Finds if one angle is between two other angles.
|
static double | atan2 (double y, double x) |
| Finds the arctan of the given y/x pair.
|
static double | cos (double angle) |
| Finds the cos, from angles in degrees.
|
static double | degToRad (double deg) |
| Converts an angle in degrees to an angle in radians.
|
static double | distanceBetween (double x1, double y1, double x2, double y2) |
| Finds the distance between two coordinates.
|
static double | epsilon () |
static double | fabs (double val) |
| Finds the absolute value of a double.
|
static double | fixAngle (double angle) |
| Takes an angle and returns the angle in range (-180,180].
|
static long | getRandMax () |
| Maximum of value returned by random().
|
static double | log2 (double x) |
static void | pointRotate (double *x, double *y, double th) |
| Rotates a point around 0 by degrees given.
|
static double | radToDeg (double rad) |
| Converts an angle in radians to an angle in degrees.
|
static long | random (void) |
static long | randomInRange (long m, long n) |
static int | roundInt (double val) |
| Finds the closest integer to double given.
|
static short | roundShort (double val) |
| Finds the closest short to double given.
|
static double | sin (double angle) |
| Finds the sin, from angles in degrees.
|
static double | squaredDistanceBetween (double x1, double y1, double x2, double y2) |
| Finds the squared distance between two coordinates.
|
static double | subAngle (double ang1, double ang2) |
| This subtracts one angle from another and fixes the result to [-180,180].
|
static double | tan (double angle) |
| Finds the tan, from angles in degrees.
|