initialPrefabs logo
  • Home 
  • Blog 
  • Tools 
  • Tags 
  1. Home
  2. Tools
  3. No Alloc Collections Documentation
  4. MathUtils

MathUtils

1 min read • 102 words
Tools   API  
Tools   API  
Share via
initialPrefabs
Link copied to clipboard

On this page
  • namespace InitialPrefabs.Collections
  • Summary
  • int CeilToIntDivision(int numerator, int denominator)
    • Summary
    • Param
    • Returns
    • Exception
  • int Min(int a, int b)
    • Summary
    • Param
    • Returns

MathUtils  

namespace InitialPrefabs.Collections  

Summary  

Convenience class for MathUtilities.

int CeilToIntDivision(int numerator, int denominator)  

Summary  

Divides two integers and rounds it up to the nearest integer.

Param  

Parameter Description
numerator The total to divide from.
denominator The total to divide by.

Returns  

int - The resulting division operation.

Exception  

The denominator cannot be 0 unless.

int Min(int a, int b)  

Summary  

Returns the minimum between a or b.

Param  

Parameter Description
a An integer.
b An integer.

Returns  

int - The minimum between a or b.

Go back to API Home

NoAllocBitArray 
On this page:
  • namespace InitialPrefabs.Collections
  • Summary
  • int CeilToIntDivision(int numerator, int denominator)
    • Summary
    • Param
    • Returns
    • Exception
  • int Min(int a, int b)
    • Summary
    • Param
    • Returns
Follow Us!

Contact us if you want to work with us for your games and art projects!

     
Copyright © 2016-2025 InitialPrefabs
initialPrefabs
Code copied to clipboard