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
|
|
@ -27,8 +27,27 @@ typedef struct ARC_DPoint {
|
|||
double y;
|
||||
} ARC_DPoint;
|
||||
|
||||
typedef struct ARC_Rect ARC_Rect;
|
||||
typedef struct ARC_FRect ARC_FRect;
|
||||
|
||||
ARC_FPoint ARC_FPoint_Lerp(ARC_FPoint *start, ARC_FPoint *end, float t);
|
||||
|
||||
/**
|
||||
* @brief centers point on given bounds
|
||||
*
|
||||
* @param point ARC_Point to be centered
|
||||
* @param bounds ARC_Rect area to center point on
|
||||
*/
|
||||
void ARC_Point_CenterOn(ARC_Point *point, ARC_Rect bounds);
|
||||
|
||||
/**
|
||||
* @brief centers fpoint on given bounds
|
||||
*
|
||||
* @param point ARC_FPoint to be centered
|
||||
* @param bounds ARC_FRect area to center point on
|
||||
*/
|
||||
void ARC_FPoint_CenterOn(ARC_FPoint *point, ARC_FRect bounds);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue