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
    exmat::Math::setConsistency(ConsistencyLevel::Performance);
    float a = exmat::Math::sqrt(2.0f);  // a = 1.41455...
    // Most accurate
    exmat::Math::setConsistency(ConsistencyLevel::Improved);
    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