Go to the source code of this file.
Classes | |
| struct | Point2Struct |
| struct | IntPoint2Struct |
| struct | Matrix3Struct |
| struct | Box2dStruct |
| struct | Point3Struct |
| struct | IntPoint3Struct |
| struct | Matrix4Struct |
| struct | Box3dStruct |
Defines | |
| #define | ABS(a) (((a)<0) ? -(a) : (a)) |
| #define | ROUND(a) ((a)>0 ? (int)((a)+0.5) : -(int)(0.5-(a))) |
| #define | ZSGN(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0) |
| #define | SGN(a) (((a)<0) ? -1 : 1) |
| #define | ASSERT(x) if (!(x)) fprintf(stderr," Assert failed: x\n"); |
| #define | SQR(a) ((a)*(a)) |
| #define | MIN(a, b) (((a)<(b))?(a):(b)) |
| #define | MAX(a, b) (((a)>(b))?(a):(b)) |
| #define | SWAP(a, b) { a^=b; b^=a; a^=b; } |
| #define | LERP(a, l, h) ((l)+(((h)-(l))*(a))) |
| #define | CLAMP(v, l, h) ((v)<(l) ? (l) : (v) > (h) ? (h) : v) |
| #define | NEWSTRUCT(x) (struct x *)(malloc((unsigned)sizeof(struct x))) |
| #define | NEWTYPE(x) (x *)(malloc((unsigned)sizeof(x))) |
| #define | PI 3.141592 |
| #define | PITIMES2 6.283185 |
| #define | PIOVER2 1.570796 |
| #define | E 2.718282 |
| #define | SQRT2 1.414214 |
| #define | SQRT3 1.732051 |
| #define | GOLDEN 1.618034 |
| #define | DTOR 0.017453 |
| #define | RTOD 57.29578 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | ON 1 |
| #define | OFF 0 |
Typedefs | |
| typedef struct Point2Struct | Point2 |
| typedef Point2 | Vector2 |
| typedef struct IntPoint2Struct | IntPoint2 |
| typedef struct Matrix3Struct | Matrix3 |
| typedef struct Box2dStruct | Box2 |
| typedef struct Point3Struct | Point3 |
| typedef Point3 | Vector3 |
| typedef struct IntPoint3Struct | IntPoint3 |
| typedef struct Matrix4Struct | Matrix4 |
| typedef struct Box3dStruct | Box3 |
| typedef int | boolean |
| typedef boolean | flag |
Functions | |
| double | V2SquaredLength () |
| double | V2Length () |
| double | V2Dot () |
| double | V2DistanceBetween2Points () |
| Vector2 * | V2Negate () |
| Vector2 * | V2Normalize () |
| Vector2 * | V2Scale () |
| Vector2 * | V2Add () |
| Vector2 * | V2Sub () |
| Vector2 * | V2Lerp () |
| Vector2 * | V2Combine () |
| Vector2 * | V2Mul () |
| Vector2 * | V2MakePerpendicular () |
| Vector2 * | V2New () |
| Vector2 * | V2Duplicate () |
| Point2 * | V2MulPointByMatrix () |
| Matrix3 * | V2MatMul () |
| double | V3SquaredLength () |
| double | V3Length () |
| double | V3Dot () |
| double | V3DistanceBetween2Points () |
| Vector3 * | V3Normalize () |
| Vector3 * | V3Scale () |
| Vector3 * | V3Add () |
| Vector3 * | V3Sub () |
| Vector3 * | V3Lerp () |
| Vector3 * | V3Combine () |
| Vector3 * | V3Mul () |
| Vector3 * | V3Cross () |
| Vector3 * | V3New () |
| Vector3 * | V3Duplicate () |
| Point3 * | V3MulPointByMatrix () |
| Matrix4 * | V3MatMul () |
| double | RegulaFalsi () |
| double | NewtonRaphson () |
| double | findroot () |
| #define ABS | ( | a ) | (((a)<0) ? -(a) : (a)) |
Definition at line 83 of file GraphicsGems.h.
Definition at line 95 of file GraphicsGems.h.
| #define CLAMP | ( | v, | |
| l, | |||
| h | |||
| ) | ((v)<(l) ? (l) : (v) > (h) ? (h) : v) |
Definition at line 120 of file GraphicsGems.h.
| #define DTOR 0.017453 |
Definition at line 145 of file GraphicsGems.h.
| #define E 2.718282 |
Definition at line 141 of file GraphicsGems.h.
| #define FALSE 0 |
Definition at line 154 of file GraphicsGems.h.
Referenced by mitk::SerialCommunication::ApplyConfiguration(), and mitk::MemoryUtilities::GetProcessMemoryUsage().
| #define GOLDEN 1.618034 |
Definition at line 144 of file GraphicsGems.h.
| #define LERP | ( | a, | |
| l, | |||
| h | |||
| ) | ((l)+(((h)-(l))*(a))) |
Definition at line 117 of file GraphicsGems.h.
| #define MAX | ( | a, | |
| b | |||
| ) | (((a)>(b))?(a):(b)) |
Definition at line 110 of file GraphicsGems.h.
| #define MIN | ( | a, | |
| b | |||
| ) | (((a)<(b))?(a):(b)) |
Definition at line 107 of file GraphicsGems.h.
Definition at line 128 of file GraphicsGems.h.
Definition at line 131 of file GraphicsGems.h.
| #define OFF 0 |
Definition at line 156 of file GraphicsGems.h.
| #define ON 1 |
Definition at line 155 of file GraphicsGems.h.
| #define PI 3.141592 |
Definition at line 138 of file GraphicsGems.h.
| #define PIOVER2 1.570796 |
Definition at line 140 of file GraphicsGems.h.
| #define PITIMES2 6.283185 |
Definition at line 139 of file GraphicsGems.h.
| #define ROUND | ( | a ) | ((a)>0 ? (int)((a)+0.5) : -(int)(0.5-(a))) |
Definition at line 86 of file GraphicsGems.h.
| #define RTOD 57.29578 |
Definition at line 146 of file GraphicsGems.h.
| #define SGN | ( | a ) | (((a)<0) ? -1 : 1) |
Definition at line 92 of file GraphicsGems.h.
| #define SQR | ( | a ) | ((a)*(a)) |
Definition at line 99 of file GraphicsGems.h.
| #define SQRT2 1.414214 |
Definition at line 142 of file GraphicsGems.h.
| #define SQRT3 1.732051 |
Definition at line 143 of file GraphicsGems.h.
| #define SWAP | ( | a, | |
| b | |||
| ) | { a^=b; b^=a; a^=b; } |
Definition at line 113 of file GraphicsGems.h.
| #define TRUE 1 |
Definition at line 153 of file GraphicsGems.h.
Referenced by mitk::SerialCommunication::ApplyConfiguration(), QmitkDiffusionTensorEstimation::DiffusionVolumesLoadButton(), QmitkDiffusionTensorEstimation::DirectionVolumesLoadButton(), QmitkDiffusionTensorEstimation::QBallVolumesLoadButton(), qembed_findImage(), QmitkPopupColorChooser::QmitkPopupColorChooser(), QmitkStdMultiWidget::QmitkStdMultiWidget(), mitk::SerialCommunication::Send(), and QmitkDiffusionTensorEstimation::TensorVolumesLoadButton().
| #define ZSGN | ( | a ) | (((a)<0) ? -1 : (a)>0 ? 1 : 0) |
Definition at line 89 of file GraphicsGems.h.
| typedef int boolean |
Definition at line 157 of file GraphicsGems.h.
| typedef struct Box2dStruct Box2 |
| typedef struct Box3dStruct Box3 |
Definition at line 158 of file GraphicsGems.h.
| typedef struct IntPoint2Struct IntPoint2 |
| typedef struct IntPoint3Struct IntPoint3 |
| typedef struct Matrix3Struct Matrix3 |
| typedef struct Matrix4Struct Matrix4 |
| typedef struct Point2Struct Point2 |
| typedef struct Point3Struct Point3 |
Definition at line 39 of file GraphicsGems.h.
Definition at line 61 of file GraphicsGems.h.
| double findroot | ( | ) |
| double NewtonRaphson | ( | ) |
| double RegulaFalsi | ( | ) |
| Vector2* V2Add | ( | ) |
| Vector2* V2Combine | ( | ) |
| double V2DistanceBetween2Points | ( | ) |
| double V2Dot | ( | ) |
| Vector2* V2Duplicate | ( | ) |
| double V2Length | ( | ) |
| Vector2* V2Lerp | ( | ) |
| Vector2* V2MakePerpendicular | ( | ) |
| Matrix3* V2MatMul | ( | ) |
| Vector2* V2Mul | ( | ) |
| Point2* V2MulPointByMatrix | ( | ) |
| Vector2* V2Negate | ( | ) |
| Vector2* V2New | ( | ) |
| Vector2* V2Normalize | ( | ) |
| Vector2* V2Scale | ( | ) |
| double V2SquaredLength | ( | ) |
| Vector2* V2Sub | ( | ) |
| Vector3* V3Add | ( | ) |
| Vector3* V3Combine | ( | ) |
| Vector3* V3Cross | ( | ) |
| double V3DistanceBetween2Points | ( | ) |
| double V3Dot | ( | ) |
| Vector3* V3Duplicate | ( | ) |
| double V3Length | ( | ) |
| Vector3* V3Lerp | ( | ) |
| Matrix4* V3MatMul | ( | ) |
| Vector3* V3Mul | ( | ) |
| Point3* V3MulPointByMatrix | ( | ) |
| Vector3* V3New | ( | ) |
| Vector3* V3Normalize | ( | ) |
| Vector3* V3Scale | ( | ) |
| double V3SquaredLength | ( | ) |
| Vector3* V3Sub | ( | ) |
1.7.2