|
|
INLINE POINT * | pt_set (POINT *pd, int x, int y) |
| | Initialize pd to (x, y)
|
| |
|
INLINE POINT * | pt_add (POINT *pd, const POINT *pa, const POINT *pb) |
| | Point addition: pd = pa + pb.
|
| |
|
INLINE POINT * | pt_sub (POINT *pd, const POINT *pa, const POINT *pb) |
| | Point subtraction: pd = pa - pb.
|
| |
|
INLINE POINT * | pt_scale (POINT *pd, const POINT *pa, int c) |
| | Point scale: pd = c * pa.
|
| |
|
INLINE POINT * | pt_add_eq (POINT *pd, const POINT *pb) |
| | Point increment: pd += pb.
|
| |
|
INLINE POINT * | pt_sub_eq (POINT *pd, const POINT *pb) |
| | Point decrement: pd -= pb.
|
| |
|
INLINE POINT * | pt_scale_eq (POINT *pd, int c) |
| | Point scale: pd *= c.
|
| |
| INLINE int | pt_cross (const POINT *pa, const POINT *pb) |
| | Point 'cross'-product: pa × pb.
|
| |
|
INLINE int | pt_dot (const POINT *pa, const POINT *pb) |
| | Point 'dot'-product:pa · pb.
|
| |
|
int | pt_in_rect (const POINT *pt, const struct RECT *rc) |
| |