45 lines
		
	
	
		
			852 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			45 lines
		
	
	
		
			852 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|  | # math library
 | ||
|  | 
 | ||
|  | This library adds extra math functions to Ground. | ||
|  | 
 | ||
|  | ## Functions
 | ||
|  | 
 | ||
|  | ### fun -double !sinVal -double &input
 | ||
|  | 
 | ||
|  | Gets the sin of input. | ||
|  | 
 | ||
|  | ### fun -double !cosVal -double &input
 | ||
|  | 
 | ||
|  | Gets the cos of input. | ||
|  | 
 | ||
|  | ### fun -double !tanVal -double &input
 | ||
|  | 
 | ||
|  | Gets the tan of input. | ||
|  | 
 | ||
|  | ### fun -double !sqrtVal -double &input
 | ||
|  | 
 | ||
|  | Gets the square root of input. | ||
|  | 
 | ||
|  | ### fun -int !modVal -int &a -int &b
 | ||
|  | 
 | ||
|  | Gets the remainder of a divided by b. | ||
|  | 
 | ||
|  | ### fun -double !floorVal -double &input
 | ||
|  | 
 | ||
|  | Gets the floor of input. | ||
|  | 
 | ||
|  | ### fun -double !ceilVal -double &input
 | ||
|  | 
 | ||
|  | Gets the ceil of input. | ||
|  | 
 | ||
|  | ### fun -double !roundVal -double &input
 | ||
|  | 
 | ||
|  | Rounds the input to the nearest integer. | ||
|  | 
 | ||
|  | ### fun -int !randomInt -int &min -int &max
 | ||
|  | 
 | ||
|  | Gets a random integer between min and max (inclusive). | ||
|  | 
 | ||
|  | ### fun -double !randomDouble -double &min -double &max
 | ||
|  | 
 | ||
|  | Gets a random double between min and max (inclusive). |