#include <ariaUtil.h>
Static Public Methods | |
double | addAngle (double ang1, double ang2) |
This adds two angles together and fixes the result to [-180, 180]. More... | |
double | subAngle (double ang1, double ang2) |
This subtracts one angle from another and fixes the result to [-180,180]. More... | |
double | fixAngle (double angle) |
Takes an angle and returns the angle in range (-180,180]. More... | |
double | degToRad (double deg) |
Converts an angle in degrees to an angle in radians. More... | |
double | radToDeg (double rad) |
Converts an angle in radians to an angle in degrees. More... | |
double | cos (double angle) |
Finds the cos, from angles in degrees. More... | |
double | sin (double angle) |
Finds the sin, from angles in degrees. More... | |
double | atan2 (double y, double x) |
Finds the arctan of the given y/x pair. More... | |
bool | angleBetween (double angle, double startAngle, double endAngle) |
Finds if one angle is between two other angles. | |
double | fabs (double val) |
Finds the absolute value of a double. More... | |
int | roundInt (double val) |
Finds the closest integer to double given. More... | |
void | pointRotate (double *x, double *y, double th) |
Rotates a point around 0 by degrees given. | |
long | random (void) |
Returns a long between 0 and some arbitrary huge number. | |
double | distanceBetween (double x1, double y1, double x2, double y2) |
Finds the distance between two coordinates. More... |
|
This adds two angles together and fixes the result to [-180, 180].
|
|
Finds the arctan of the given y/x pair.
|
|
Finds the cos, from angles in degrees.
|
|
Converts an angle in degrees to an angle in radians.
|
|
Finds the distance between two coordinates.
|
|
Finds the absolute value of a double.
|
|
Takes an angle and returns the angle in range (-180,180].
|
|
Converts an angle in radians to an angle in degrees.
|
|
Finds the closest integer to double given.
|
|
Finds the sin, from angles in degrees.
|
|
This subtracts one angle from another and fixes the result to [-180,180].
|