Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlMath.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: The OpenIGTLink Library
4  Language: C++
5  Web page: http://openigtlink.org/
6 
7  Copyright (c) Insight Software Consortium. All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 =========================================================================*/
14 
15 #ifndef __igtlMath_h
16 #define __igtlMath_h
17 
18 #include "igtlWin32Header.h"
19 
20 namespace igtl
21 {
22 
23 typedef float Matrix4x4[4][4];
24 
27 
29 void IGTLCommon_EXPORT PrintVector3(float v[3]);
30 
32 void IGTLCommon_EXPORT PrintVector3(float x, float y, float z);
33 
35 void IGTLCommon_EXPORT PrintVector4(float v[4]);
36 
38 void IGTLCommon_EXPORT PrintVector4(float x, float y, float z, float w);
39 
43 
47 
50 void IGTLCommon_EXPORT Cross(float *a, float *b, float *c);
51 
54 
55 }
56 
57 #endif // __igtlMath_h
58 
59 
60 
void IGTLCommon_EXPORT QuaternionToMatrix(float *q, Matrix4x4 &m)
#define IGTLCommon_EXPORT
void IGTLCommon_EXPORT PrintVector3(float v[3])
Prints out a 3-element vector on the standard output.
void IGTLCommon_EXPORT PrintVector4(float v[4])
Prints out a 4-element vector on the standard output.
void IGTLCommon_EXPORT Cross(float *a, float *b, float *c)
void IGTLCommon_EXPORT MatrixToQuaternion(Matrix4x4 &m, float *q)
void IGTLCommon_EXPORT PrintMatrix(igtl::Matrix4x4 &matrix)
Prints out a 4-by-4 matrix on the standard output.
void IGTLCommon_EXPORT IdentityMatrix(igtl::Matrix4x4 &matrix)
Initialize a 4-by-4 matrix as an identity matrix.
float Matrix4x4[4][4]
Definition: igtlMath.h:23

Generated at Mon Nov 11 2013 05:19:48 for OpenIGTLink by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2012