AbstractStaticdeg2radGet the degrees to radiants conversion factor.
The factor.
StaticepsilonPrecision for float comparisons. 1e-6 should be enough for HDR and humar eye perception.
The precision.
Staticrad2degGet the radiants to degrees conversion factor.
The factor.
StaticclipClip.
The value to clip.
The min value.
The max value.
The clipped value.
StaticdegConvert degrees to radiants.
The angle in degrees.
The angle in radiants.
StaticequalsSafe floating point comparison.
The first value.
The second value.
Optionalepsilon: numberOptional comparison precision.
The comparison result.
StatichueInterpolate two hue channels.
The first component.
The second component.
Whether the first color is achromatic.
Whether the first color is achromatic.
The interpolation weight.
The interpolation strategy.
The interpolation result.
StaticisSafe floating point zero check.
The value to check.
Optionalzero: numberOptional comparison precision.
True if the value is zero-aproximable.
StaticlerpLinear interpolation.
The first value.
The second value.
The interpolation weight.
The interpolation result.
StaticlinearConverison from Lienar to sRGB.
The value to convert.
The converted value.
StaticnormalizeNormalize Hue angle between 0 and 360.
The hue.
The normalized value.
StaticradConvert radiants to degrees.
The angle in radiants.
The angle in degrees.
StaticroundRound a number in a robust way. Fast implementation using numbers.
The number.
The decimals.
The rounded number.
StaticroundRound a number in a robust way.
Slower implemmentation since uses strings, but more robust on very
extreme edge cases w.r.t. round().
The number.
The decimals.
The rounded number.
StaticsrgbConverison from sRGB to Linear.
The value to convert.
The converted value.
StaticwrapModule. Support negative numbers.
The value.
The min value.
The max value.
The module result.
StaticzeroSafe division. If denominator is almost zero (Epsilon), return 0. In color science, if a division by 0 happens (e.g. calculation the saturation of a gray), the semantically correct result is "no saturation" (0), not Infinity.
The numerator.
The denominator.
Optionalfallback: numberOptional value to return in case the denominator is zero. Default is zero.
Class to wrap math utils.