point centering functions added for rectangle and point
This commit is contained in:
parent
d89c95688e
commit
a829b656f3
4 changed files with 64 additions and 4 deletions
|
|
@ -47,6 +47,22 @@ void ARC_Rect_CenterOn(ARC_Rect *rect, ARC_Rect bounds);
|
|||
*/
|
||||
void ARC_FRect_CenterOn(ARC_FRect *rect, ARC_FRect bounds);
|
||||
|
||||
/**
|
||||
* @brief centers rect on a given point
|
||||
*
|
||||
* @param rect ARC_Rect to be centered
|
||||
* @param bounds ARC_Point point to center rect on
|
||||
*/
|
||||
void ARC_Rect_CenterOnPoint(ARC_Rect *rect, ARC_Point center);
|
||||
|
||||
/**
|
||||
* @brief centers rect on a given point
|
||||
*
|
||||
* @param rect ARC_FRect to be centered
|
||||
* @param bounds ARC_FPoint point to center rect on
|
||||
*/
|
||||
void ARC_FRect_CenterOnPoint(ARC_FRect *rect, ARC_FPoint center);
|
||||
|
||||
/**
|
||||
* @brief casts Rect to FRect
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue