MathUtils
Functions
Link copied to clipboard
This method takes a numerical value and ensures it fits in a given numerical range.
Link copied to clipboard
Returns the argument decremented by one, throwing an exception if the result overflows an
int
.Returns the argument decremented by one, throwing an exception if the result overflows a
long
.Link copied to clipboard
Returns the argument incremented by one, throwing an exception if the result overflows an
int
.Returns the argument incremented by one, throwing an exception if the result overflows a
long
.Link copied to clipboard
Returns the product of the arguments, throwing an exception if the result overflows an
int
.Returns the product of the arguments, throwing an exception if the result overflows a
long
.Link copied to clipboard
Returns the negation of the argument, throwing an exception if the result overflows an
int
.Returns the negation of the argument, throwing an exception if the result overflows a
long
.Link copied to clipboard
Returns the difference of the arguments, throwing an exception if the result overflows an
int
.Returns the difference of the arguments, throwing an exception if the result overflows a
long
.Link copied to clipboard
Returns the value of the
long
argument, throwing an exception if the value overflows an int
.