Cortex  10.0.0-a4
Namespaces | Macros | Functions
Math.h File Reference
#include <cmath>
#include "IECore/Math.inl"

Go to the source code of this file.

Namespaces

 IECore
 This namespace contains all components of the core library.
 

Macros

#define M_PI   3.14159265358979323846264338327950288
 

Functions

template<typename T >
int IECore::sign (T x)
 Returns -1 for negative numbers, 1 for positive, and 0 for 0.
 
template<typename T >
IECore::smoothstep (T v0, T v1, T x)
 Computes smoothstep function from Ken Perlin's original noise implementation.
 

Detailed Description

Defines useful mathematical operations that don't seem to belong elsewhere.