|
Revision 1084, 2.0 kB
(checked in by patrick, 9 years ago)
|
Added my name to the copyright notice.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
#ifndef _VJ_CONFIG_H_ |
|---|
| 22 |
#define _VJ_CONFIG_H_ |
|---|
| 23 |
#pragma once |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
#ifdef HAVE_CONFIG_H |
|---|
| 36 |
#include <vjDefines.h> |
|---|
| 37 |
#endif |
|---|
| 38 |
|
|---|
| 39 |
#ifdef _DEBUG |
|---|
| 40 |
# define VJ_DEBUG |
|---|
| 41 |
#else |
|---|
| 42 |
# define VJ_OPT |
|---|
| 43 |
#endif |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
#ifdef __cplusplus |
|---|
| 48 |
#include <iostream.h> |
|---|
| 49 |
#include <iomanip.h> |
|---|
| 50 |
#include <fstream.h> |
|---|
| 51 |
#include <vector> |
|---|
| 52 |
#include <map> |
|---|
| 53 |
#include <string> |
|---|
| 54 |
#include <algorithm> |
|---|
| 55 |
|
|---|
| 56 |
#endif |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
#define VJ_EPS 1e-8 |
|---|
| 61 |
#define VJ_DEG2RAD(x) ((x)*M_PI/180.0) |
|---|
| 62 |
#define VJ_RAD2DEG(x) ((x)*180.0/M_PI) |
|---|
| 63 |
#define VJ_ZERO_CLAMP(x) ((fabs(x) < VJ_EPS)? 0.0f : x) |
|---|
| 64 |
#define VJ_IS_ZERO(x) (fabs(x) < VJ_EPS) |
|---|
| 65 |
#define VJ_CLAMP(x,y) ((x>y)? y : x) |
|---|
| 66 |
#define VJ_MIN2(x,y) ((x>y)? y : x) |
|---|
| 67 |
#define VJ_MIN3(x,y,z) VJ_MIN2(VJ_MIN2(x,y),z) |
|---|
| 68 |
#define VJ_MIN4(w,x,y,z) VJ_MIN2(VJ_MIN2(w,x), VJ_MIN2(y,z)) |
|---|
| 69 |
#define VJ_MAX2(x,y) ((x>y)? x : y) |
|---|
| 70 |
#define VJ_MAX3(x,y,z) VJ_MAX2(VJ_MAX2(x,y),z) |
|---|
| 71 |
#define VJ_MAX4(w,x,y,z) VJ_MAX2(VJ_MAX2(w,x),VJ_MAX2(y,z)) |
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 |
#endif |
|---|