Data Structures UFC
1.0.0
Essential Data Structures for C language
|
Go to the source code of this file.
Data Structures | |
struct | Point |
struct Point as 2D space pointer. More... | |
Typedefs | |
typedef struct Point | Point |
Functions | |
Point * | point_create (float x, float y) |
create a new Point and set x an y More... | |
void | point_free (Point *p) |
free memory for the Point p More... | |
void | point_set (Point *p, float x, float y) |
Set the values of p.x and p.y. More... | |
void | point_get (Point *p, float *x, float *y) |
Get the values of p.x and p.y through the pointers *x and *y. More... | |
float | point_get_y (Point *p) |
Get the x value. More... | |
float | point_get_x (Point *p) |
Get the y value. More... | |
void | point_copy (Point *origin, Point *destination) |
Copy point origin to destination. More... | |
float | point_distance (Point *px, Point *py) |
calculate the euclidean distance between two points More... | |
Point* point_create | ( | float | x, |
float | y | ||
) |
create a new Point and set x an y
calculate the euclidean distance between two points
void point_get | ( | Point * | p, |
float * | x, | ||
float * | y | ||
) |
Get the values of p.x and p.y through the pointers *x and *y.
float point_get_x | ( | Point * | p | ) |
Get the y value.
float point_get_y | ( | Point * | p | ) |
Get the x value.
void point_set | ( | Point * | p, |
float | x, | ||
float | y | ||
) |
Set the values of p.x and p.y.