|
Robot Agent
1.0
|
Go to the source code of this file.
Functions | |
| int | general_bytes2int (unsigned char byte_high, unsigned char byte_low) |
| unsigned int | general_bytes2uint (unsigned char byte_high, unsigned char byte_low) |
| void | general_int2bytes (int integer, unsigned char *byte_high, unsigned char *byte_low) |
| double | general_gaussrand (double mu, double sigma) |
| float | general_gaussian (float mu, float sigma, int x) |
| float | general_dist_squared (int x1, int y1, int x2, int y2) |
| float | general_dist2seg (int x, int y, int p1[], int p2[]) |
| void | general_circle (int **arr, int cx, int cy, int radius) |
| void | general_circle_eight_points (int **arr, int cx, int cy, int x, int y) |
| void | general_circle_four_points (int **arr, int cx, int cy, int x, int y) |
| void | general_circle_horizontal_line (int **arr, int x, int y, int len) |
| int general_bytes2int | ( | unsigned char | byte_high, |
| unsigned char | byte_low | ||
| ) |
| unsigned int general_bytes2uint | ( | unsigned char | byte_high, |
| unsigned char | byte_low | ||
| ) |
| void general_circle | ( | int ** | arr, |
| int | cx, | ||
| int | cy, | ||
| int | radius | ||
| ) |
Draw (fill) filled circle in 2D array http://en.wikipedia.org/wiki/Midpoint_circle_algorithm // Code modified
| cx | Center x coordinate |
| cy | Center y coordinate |
| radius | Radius of circle |
| void general_circle_eight_points | ( | int ** | arr, |
| int | cx, | ||
| int | cy, | ||
| int | x, | ||
| int | y | ||
| ) |
Draw (fill) eight points - Part of general_circle() function http://en.wikipedia.org/wiki/Midpoint_circle_algorithm // Code modified
| cx | Center x coordinate |
| cy | Center y coordinate |
| x | X coordinate |
| y | Y coordinate |
| void general_circle_four_points | ( | int ** | arr, |
| int | cx, | ||
| int | cy, | ||
| int | x, | ||
| int | y | ||
| ) |
Draw (fill) four points - Part of general_circle() function http://en.wikipedia.org/wiki/Midpoint_circle_algorithm // Code modified
| cx | Center x coordinate |
| cy | Center y coordinate |
| x | X coordinate |
| y | Y coordinate |
| void general_circle_horizontal_line | ( | int ** | arr, |
| int | x, | ||
| int | y, | ||
| int | len | ||
| ) |
Draw (fill) horizontal line - Part of general_circle() function http://en.wikipedia.org/wiki/Midpoint_circle_algorithm // Code modified
| x | Start x coordinate |
| y | Start y coordinate |
| len | Length of line |
| float general_dist2seg | ( | int | x, |
| int | y, | ||
| int | p1[], | ||
| int | p2[] | ||
| ) |
| float general_dist_squared | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
| float general_gaussian | ( | float | mu, |
| float | sigma, | ||
| int | x | ||
| ) |
| double general_gaussrand | ( | double | mu, |
| double | sigma | ||
| ) |
Random number based on normal (gaussian) distribution http://c-faq.com/lib/gaussian.html [Donald E. Knuth]
| mu | Mean of gaussian |
| sigma | Variance of gaussian |
| void general_int2bytes | ( | int | integer, |
| unsigned char * | byte_high, | ||
| unsigned char * | byte_low | ||
| ) |
1.8.5