PIP 5.5.3
Platform-Independent Primitives
Functions
pimathcomplex.h File Reference

Complex numbers. More...

#include "pibytearray.h"
#include "pimathbase.h"
#include "pivector2d.h"
#include <complex>

Functions

complexd round (const complexd &c)
 Round, floor, and ceil functions for complex numbers.
 
complexd floor (const complexd &c)
 Floor a complex number.
 
complexd ceil (const complexd &c)
 Ceil a complex number.
 
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, int >::type = 0>
bool PIMathFloatNullCompare (const T v)
 floating point number specific comparison between value passed as parameter and zero More...
 

Detailed Description

Complex numbers.

Function Documentation

◆ PIMathFloatNullCompare()

template<typename T , typename std::enable_if< std::is_floating_point< T >::value, int >::type = 0>
bool PIMathFloatNullCompare ( const T  v)
inline

floating point number specific comparison between value passed as parameter and zero

floating point number specific comparison between parameter value and zero.

Parameters
vfloating point parameter for comparison
Returns
true if v in locality of zero, otherwise false
Parameters
vcomplex with floating point real and imag parts
Returns
true if absolute of v in locality of zero, otherwise false