/// <summary> /// Add to a rects position equally with a single float and get the copy. /// </summary> public static Rect Position(this HUMMath.Data.AddRect A, float B) { var result = A.rect; result.x += B; result.y += B; return(result); }
/// <summary> /// Add to a rects position and get the copy. /// </summary> public static Rect Position(this HUMMath.Data.AddRect A, Vector2 B) { var result = A.rect; result.x += B.x; result.y += B.y; return(result); }
/// <summary> /// Add to a rects size equally with a single float and get the copy. /// </summary> public static Rect Size(this HUMMath.Data.AddRect A, float B) { var result = A.rect; result.width += B; result.height += B; return(result); }
/// <summary> /// Add to a rects size and get the copy. /// </summary> public static Rect Size(this HUMMath.Data.AddRect A, Vector2 B) { var result = A.rect; result.width += B.x; result.height += B.y; return(result); }
/// <summary> /// Add to the heigt of this rect. /// </summary> public static Rect Height(this HUMMath.Data.AddRect add, float value) { return(add.rect.Add(new Rect(0, 0, 0, value))); }
/// <summary> /// Add to X of this rect. /// </summary> public static Rect X(this HUMMath.Data.AddRect add, float value) { return(add.rect.Add(new Rect(value, 0, 0, 0))); }