Go to the source code of this file.
|
typedef struct Point | Point |
◆ Point
typedef struct Point Point |
◆ point_copy()
void point_copy |
( |
Point * | origin, |
|
|
Point * | destination ) |
Copy point origin to destination.
◆ point_create()
Point * point_create |
( |
float | x, |
|
|
float | y ) |
create a new Point and set x an y
- Returns
- the address of the allocated point
◆ point_distance()
calculate the euclidean distance between two points
- Returns
- the distance of *px and *py as a float number
◆ point_free()
void point_free |
( |
Point * | p | ) |
|
free memory for the Point p
- Parameters
-
◆ point_get()
void point_get |
( |
Point * | p, |
|
|
float * | x, |
|
|
float * | y ) |
Get the values of p.x and p.y through the pointers *x and *y.
◆ point_get_x()
float point_get_x |
( |
Point * | p | ) |
|
◆ point_get_y()
float point_get_y |
( |
Point * | p | ) |
|
◆ point_set()
void point_set |
( |
Point * | p, |
|
|
float | x, |
|
|
float | y ) |
Set the values of p.x and p.y.