PCL
Floating Point Number Classification

Functions

bool pcl::IsFinite (double x) noexcept
 
bool pcl::IsFinite (float x) noexcept
 
int pcl::IsInfinity (double x) noexcept
 
int pcl::IsInfinity (float x) noexcept
 
bool pcl::IsNaN (double x) noexcept
 
bool pcl::IsNaN (float x) noexcept
 
bool pcl::IsNegativeZero (double x) noexcept
 
bool pcl::IsNegativeZero (float x) noexcept
 

Detailed Description

Function Documentation

◆ IsFinite() [1/2]

bool pcl::IsFinite ( double  x)
inlinenoexcept

Returns true iff the specified 64-bit floating point number is finite. A number is finite if it is neither NaN (Not a Number) nor positive or negative infinity.

See also
IsNaN( double ), IsInfinity( double )

Definition at line 249 of file Math.h.

◆ IsFinite() [2/2]

bool pcl::IsFinite ( float  x)
inlinenoexcept

Returns true iff the specified 32-bit floating point number is finite. A number is finite if it is neither NaN (Not a Number) nor positive or negative infinity.

See also
IsNaN( float ), IsInfinity( float )

Definition at line 178 of file Math.h.

Referenced by pcl::ProjectionBase::Direct(), pcl::ProjectionBase::Inverse(), pcl::LinearFit::IsValid(), and pcl::TwoSidedEstimate::IsValid().

◆ IsInfinity() [1/2]

int pcl::IsInfinity ( double  x)
inlinenoexcept

Returns a nonzero integer value if the specified 64-bit floating point number is an infinity.

This function returns:

+1 if x is positive infinity.
-1 if x is negative infinity.
 0 if x is either NaN or a finite value.
See also
IsFinite( double ), IsNaN( double )

Definition at line 287 of file Math.h.

◆ IsInfinity() [2/2]

int pcl::IsInfinity ( float  x)
inlinenoexcept

Returns a nonzero integer value if the specified 32-bit floating point number is an infinity.

This function returns:

+1 if x is positive infinity.
-1 if x is negative infinity.
 0 if x is either NaN or a finite value.
See also
IsFinite( float ), IsNaN( float )

Definition at line 216 of file Math.h.

◆ IsNaN() [1/2]

bool pcl::IsNaN ( double  x)
inlinenoexcept

Returns true iff the specified 64-bit floating point number is NaN. A NaN (Not A Number) is a special value in the IEEE 754 standard used to represent an undefined or unrepresentable value, such as the result of invalid operations like 0/0, or real operations with complex results as the square root of a negative number.

See also
IsFinite( double ), IsInfinity( double )

Definition at line 265 of file Math.h.

◆ IsNaN() [2/2]

bool pcl::IsNaN ( float  x)
inlinenoexcept

Returns true iff the specified 32-bit floating point number is NaN. A NaN (Not A Number) is a special value in the IEEE 754 standard used to represent an undefined or unrepresentable value, such as the result of invalid operations like 0/0, or real operations with complex results as the square root of a negative number.

See also
IsFinite( float ), IsInfinity( float )

Definition at line 194 of file Math.h.

◆ IsNegativeZero() [1/2]

bool pcl::IsNegativeZero ( double  x)
inlinenoexcept

Returns true iff the specified 64-bit floating point number is a negative zero.

Definition at line 303 of file Math.h.

◆ IsNegativeZero() [2/2]

bool pcl::IsNegativeZero ( float  x)
inlinenoexcept

Returns true iff the specified 32-bit floating point number is a negative zero.

Definition at line 231 of file Math.h.