|
Revision 496, 1.2 kB
(checked in by allenb, 10 years ago)
|
Moved common includes to vjConfig.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
#ifndef _VJ_CONFIG_H_ |
|---|
| 2 |
#define _VJ_CONFIG_H_ |
|---|
| 3 |
#pragma once |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
#ifdef HAVE_CONFIG_H |
|---|
| 18 |
#include <vjDefines.h> |
|---|
| 19 |
#endif |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
#ifdef __cplusplus |
|---|
| 24 |
#include <iostream.h> |
|---|
| 25 |
#include <iomanip.h> |
|---|
| 26 |
#include <fstream.h> |
|---|
| 27 |
#endif |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
#define VJ_DEG2RAD(x) ((x)*M_PI/180.0) |
|---|
| 31 |
#define VJ_RAD2DEG(x) ((x)*180.0/M_PI) |
|---|
| 32 |
#define VJ_ZERO_CLAMP(x) ((fabs(x) < 1e-15)? 0.0f : x) |
|---|
| 33 |
#define VJ_CLAMP(x,y) ((x>y)? y : x) |
|---|
| 34 |
#define VJ_MIN2(x,y) ((x>y)? y : x) |
|---|
| 35 |
#define VJ_MIN3(x,y,z) VJ_MIN2(VJ_MIN2(x,y),z) |
|---|
| 36 |
#define VJ_MIN4(w,x,y,z) VJ_MIN2(VJ_MIN2(w,x), VJ_MIN2(y,z)) |
|---|
| 37 |
#define VJ_MAX2(x,y) ((x>y)? x : y) |
|---|
| 38 |
#define VJ_MAX3(x,y,z) VJ_MAX2(VJ_MAX2(x,y),z) |
|---|
| 39 |
#define VJ_MAX4(w,x,y,z) VJ_MAX2(VJ_MAX2(w,x),VJ_MAX2(y,z)) |
|---|
| 40 |
|
|---|
| 41 |
#endif |
|---|