Blender V5.3
BLI_math_base_safe.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

MINLINE float blender::safe_divide (float a, float b)
MINLINE float blender::safe_modf (float a, float b)
MINLINE float blender::safe_logf (float a, float base)
MINLINE float blender::safe_sqrtf (float a)
MINLINE float blender::safe_inverse_sqrtf (float a)
MINLINE float blender::safe_asinf (float a)
MINLINE float blender::safe_acosf (float a)
MINLINE float blender::safe_powf (float base, float exponent)

Detailed Description

This file provides safe alternatives to common math functions like sqrt, powf. In this context "safe" means that the output is not NaN if the input is not NaN.

Definition in file BLI_math_base_safe.hh.