$search

fawkes Namespace Reference

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)

Function Documentation

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.

Parameters:
angle_rad1 first angle in radian
angle_rad2 first angle in radian
Returns:
distance between the two angles

Definition at line 127 of file angle.h.

float fawkes::deg2rad ( float  deg  )  [inline]

Convert an angle given in degrees to radians.

Parameters:
deg original value in degrees
Returns:
converted value in radians

Definition at line 37 of file angle.h.

float fawkes::distance ( float  x1,
float  y1,
float  x2,
float  y2 
) [inline]

Get distance between two 2D cartesian coordinates.

Parameters:
x1 X coordinate of first point
y1 Y coordinate of first point
x2 X coordinate of second point
y2 Y coordinate of second point

Definition at line 61 of file angle.h.

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.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 109 of file angle.h.

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.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 74 of file angle.h.

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.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 91 of file angle.h.

float fawkes::rad2deg ( float  rad  )  [inline]

Convert an angle given in radians to degrees.

Parameters:
rad original value in radians
Returns:
converted value in degrees

Definition at line 48 of file angle.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


skillgui
Author(s): Tim Niemueller
autogenerated on Mon Mar 4 12:13:25 2013