Scalar Functions
[Global Functions in the SimTK namespace]

These functions are overloaded to act on SimTK scalar types and C++ built-in types, including integral types when appropriate. More...

Modules

 isNaN()
 

isNaN(x) provides a reliable way to determine if x is one of the "not a number" floating point forms.


 isFinite()
 

isFinite(x) provides a reliable way to determine if x is a "normal" floating point number, meaning not a NaN or +/- Infinity.


 isInf()
 

isInf(x) provides a reliable way to determine if x is one of the two infinities (either negative or positive).


 isNumericallyEqual()
 

isNumericallyEqual(x,y) compares two scalar types using a tolerance (default or explicitly specified) and returns true if they are close enough.


 sign()
 

s=sign(n) returns int -1,0,1 according to n<0, n==0, n>0 for any integer or real numeric type, unsigned 0 or 1 for any unsigned argument.


 square()
 

y=square(x) returns the square of the argument for any numeric type.


 cube()
 

y=cube(x) returns the cube of the argument for any numeric type, integral or floating point.



Detailed Description

These functions are overloaded to act on SimTK scalar types and C++ built-in types, including integral types when appropriate.


Generated on Wed Dec 30 11:05:08 2009 for SimTKcore by  doxygen 1.6.1