$search
Classes | |
class | Throbber |
Functions | |
float | angle_distance (float angle_rad1, float angle_rad2) |
float | deg2rad (float deg) |
float | distance (float x1, float y1, float x2, float y2) |
float | normalize_bigmirror_rad (float angle_rad) |
float | normalize_mirror_rad (float angle_rad) |
float | normalize_rad (float angle_rad) |
float | rad2deg (float rad) |
float fawkes::angle_distance | ( | float | angle_rad1, | |
float | angle_rad2 | |||
) | [inline] |
Determines the distance between two angle provided as radians. Quadrants of the angles are considered to determine really the minimal angle difference.
angle_rad1 | first angle in radian | |
angle_rad2 | first angle in radian |
float fawkes::deg2rad | ( | float | deg | ) | [inline] |
float fawkes::distance | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2 | |||
) | [inline] |
float fawkes::normalize_bigmirror_rad | ( | float | angle_rad | ) | [inline] |
Normalizes angle in radian between -3*PI and 3*PI. If the angle is above 2*PI or below 2*PI the angle will be clipped. The largest full amount of (-)2*PI is subtracted, such that only the amount within the range [-2*PI, 2*PI] remains. Then (-)2*PI is added again.
angle_rad | original value |
float fawkes::normalize_mirror_rad | ( | float | angle_rad | ) | [inline] |
Normalize angle in radian between -PI and PI. The given angle in radians is taken as an angle on the unit circle. It is then normalized into the range -PI and PI, such that it is the exact same angle on the unit circle but in the usual angle range.
angle_rad | original value |
float fawkes::normalize_rad | ( | float | angle_rad | ) | [inline] |
Normalize angle in radian between 0 and 2*PI. The given angle in radians is taken as an angle on the unit circle. It is then normalized into the range 0 and 2*PI, such that it is the exact same angle on the unit circle but in the usual angle range.
angle_rad | original value |