Defines | Functions

ut_math.h File Reference

#include <math.h>
#include "ut_types.h"

Go to the source code of this file.

Defines

#define UT_E   2.7182818284590452354
#define UT_LOG2E   1.4426950408889634074
#define UT_LOG10E   0.43429448190325182765
#define UT_LN2   0.69314718055994530942
#define UT_LN10   2.30258509299404568402
#define UT_PI   3.14159265358979323846
#define UT_PI_2   1.57079632679489661923
#define UT_PI_4   0.78539816339744830962
#define UT_1_PI   0.31830988618379067154
#define UT_2_PI   0.63661977236758134308
#define UT_2_SQRTPI   1.12837916709551257390
#define UT_SQRT2   1.41421356237309504880
#define UT_SQRT1_2   0.70710678118654752440

Functions

ABI_EXPORT UT_uint32 UT_newNumber ()

Define Documentation

#define UT_1_PI   0.31830988618379067154
#define UT_2_PI   0.63661977236758134308
#define UT_2_SQRTPI   1.12837916709551257390
#define UT_E   2.7182818284590452354
#define UT_LN10   2.30258509299404568402
#define UT_LN2   0.69314718055994530942
#define UT_LOG10E   0.43429448190325182765
#define UT_LOG2E   1.4426950408889634074
#define UT_PI   3.14159265358979323846
#define UT_PI_2   1.57079632679489661923
#define UT_PI_4   0.78539816339744830962
#define UT_SQRT1_2   0.70710678118654752440
#define UT_SQRT2   1.41421356237309504880

Function Documentation

ABI_EXPORT UT_uint32 UT_newNumber (  ) 

Guaranteed to return a unique new number quickly on each call, for the first 4.2 billion calls or so

Referenced by s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_writeAnnotation(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), and AP_CocoaApp::pasteFromClipboard().