1.1.0
|
Functions and types that deal with rectangles. More...
Classes | |
struct | fc_rect |
Represents a rectangle with left , top , right and bottom float values. More... | |
Functions | |
float | fc_rect_width (struct fc_rect const *rect) |
Calculates and returns the width of a rect represented by a fc_rect value. More... | |
float | fc_rect_height (struct fc_rect const *rect) |
Calculates and returns the height of a rect represented by a fc_rect value. More... | |
Functions and types that deal with rectangles.
float fc_rect_width | ( | struct fc_rect const * | rect | ) |
Calculates and returns the width of a rect represented by a fc_rect
value.
This is equivalent to (rect->right - rect->left)
Example
rect | A pointer to a fc_rect value to calculate width |
float fc_rect_height | ( | struct fc_rect const * | rect | ) |
Calculates and returns the height of a rect represented by a fc_rect
value.
This is equivalent to (rect->bottom - rect->top)
Example
rect | A pointer to a fc_rect value to calculate height |