Geogram Version 1.8.5
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::Numeric Namespace Reference

Defines numeric types used in Vorpaline. More...

Classes

struct  Limits
 Extends std::numeric_limits with additional information. More...
 
struct  LimitsHelper
 Limits helper class that extends std::numeric_limits. More...
 
struct  LimitsHelper< T, true >
 Specialization of LimitsHelper for numeric types. More...
 

Typedefs

typedef void * pointer
 
typedef int8_t int8
 
typedef int16_t int16
 
typedef int32_t int32
 
typedef int64_t int64
 
typedef uint8_t uint8
 
typedef uint16_t uint16
 
typedef uint32_t uint32
 
typedef uint64_t uint64
 
typedef float float32
 
typedef double float64
 

Functions

float32 max_float32 ()
 Gets 32 bits float maximum positive value.
 
float32 min_float32 ()
 Gets 32 bits float minimum negative value.
 
float64 max_float64 ()
 Gets 64 bits float maximum positive value.
 
float64 min_float64 ()
 Gets 64 bits float minimum negative value.
 
bool is_nan (float32 x)
 Checks whether a 32 bits float is "not a number".
 
bool is_nan (float64 x)
 Checks whether a 64 bits float is "not a number".
 
void random_reset ()
 Resets the random number generator.
 
int32 random_int32 ()
 Returns a 32 bits integer between 0 and RAND_MAX.
 
float32 random_float32 ()
 Returns a 32 bits float between 0 and 1.
 
float64 random_float64 ()
 Returns a 64 bits float between 0 and 1.
 

Detailed Description

Defines numeric types used in Vorpaline.

These types names have the form (u)int<size> or float<size>, where the (optional) u denotes an unsigned type, and the size is in bits.

Typedef Documentation

◆ float32

typedef float GEO::Numeric::float32

Floating point type with a width of 32 bits

Definition at line 102 of file numeric.h.

◆ float64

typedef double GEO::Numeric::float64

Floating point type with a width of 64 bits

Definition at line 105 of file numeric.h.

◆ int16

typedef int16_t GEO::Numeric::int16

Integer type with a width of 16 bits

Definition at line 81 of file numeric.h.

◆ int32

typedef int32_t GEO::Numeric::int32

Integer type with a width of 32 bits

Definition at line 84 of file numeric.h.

◆ int64

typedef int64_t GEO::Numeric::int64

Integer type with a width of 64 bits

Definition at line 87 of file numeric.h.

◆ int8

typedef int8_t GEO::Numeric::int8

Integer type with a width of 8 bits

Definition at line 78 of file numeric.h.

◆ pointer

typedef void* GEO::Numeric::pointer

Generic pointer type

Definition at line 75 of file numeric.h.

◆ uint16

typedef uint16_t GEO::Numeric::uint16

Unsigned integer type with a width of 16 bits

Definition at line 93 of file numeric.h.

◆ uint32

typedef uint32_t GEO::Numeric::uint32

Unsigned integer type with a width of 32 bits

Definition at line 96 of file numeric.h.

◆ uint64

typedef uint64_t GEO::Numeric::uint64

Unsigned integer type with a width of 64 bits

Definition at line 99 of file numeric.h.

◆ uint8

typedef uint8_t GEO::Numeric::uint8

Unsigned integer type with a width of 8 bits

Definition at line 90 of file numeric.h.

Function Documentation

◆ max_float32()

float32 GEO::Numeric::max_float32 ( )
inline

Gets 32 bits float maximum positive value.

Definition at line 110 of file numeric.h.

◆ max_float64()

float64 GEO::Numeric::max_float64 ( )
inline

Gets 64 bits float maximum positive value.

Definition at line 127 of file numeric.h.

◆ min_float32()

float32 GEO::Numeric::min_float32 ( )
inline

Gets 32 bits float minimum negative value.

Definition at line 117 of file numeric.h.

◆ min_float64()

float64 GEO::Numeric::min_float64 ( )
inline

Gets 64 bits float minimum negative value.

Definition at line 134 of file numeric.h.