Mathematical / utility functions

exmat provides numbers of mathematical and utility functions, they are put in the exmat::Math namespace.
    // Square root
    float a = exmat::Math::sqrt(2.0f);

You can trade accuracy for performance by setting the floating point consistency level for the mathematical functions

    // Fastest
    float a = exmat::Math::sqrt(2.0f);  // a = 1.41455...
    // Most accurate
    float a = exmat::Math::sqrt(2.0f);  // a = 1.41421...

See also:
setConsistency, exmat::Math::ConsistencyLevel
Go to the next section : Input / output
Generated on Sat May 6 23:12:04 2006 for Exmat by  doxygen 1.4.6-NO