Method RoundUpAndIncrementIfOdd
RoundUpAndIncrementIfOdd(float)
Rounds up the given coordinate value to the nearest integer and increments it by 1 if the result is odd.
public static int RoundUpAndIncrementIfOdd(float value)
Parameters
valuefloatThe coordinate value to process.
Returns
- int
An integer that is the rounded-up value incremented by 1 if it is odd.