Template Function flamegpu::detail::numeric::approxExactlyDivisible
Defined in File numeric.h
Function Documentation
-
template<typename T>
bool flamegpu::detail::numeric::approxExactlyDivisible(T x, T y) Templated method to check whether a value (x) is approximately exactly divisible by another value (y).
- Parameters:
x – the numerator
y – the denominator
- Returns:
boolean indicating if x is exactly divisible by y, within reason given the use of floating point numbers.