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 
igtl::PrintMatrix
void IGTLCommon_EXPORT PrintMatrix(igtl::Matrix4x4 &matrix)
Prints out a 4-by-4 matrix on the standard output.
igtl
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
Definition: igtlBindMessage.h:25
IGTLCommon_EXPORT
#define IGTLCommon_EXPORT
Definition: igtlWin32Header.h:151
igtl::Matrix4x4
float Matrix4x4[4][4]
Definition: igtlMath.h:23
igtl::QuaternionToMatrix
void IGTLCommon_EXPORT QuaternionToMatrix(float *q, Matrix4x4 &m)
igtl::PrintVector3
void IGTLCommon_EXPORT PrintVector3(float v[3])
Prints out a 3-element vector on the standard output.
igtl::IdentityMatrix
void IGTLCommon_EXPORT IdentityMatrix(igtl::Matrix4x4 &matrix)
Initialize a 4-by-4 matrix as an identity matrix.
igtl::PrintVector4
void IGTLCommon_EXPORT PrintVector4(float v[4])
Prints out a 4-element vector on the standard output.
igtl::Cross
void IGTLCommon_EXPORT Cross(float *a, float *b, float *c)
igtlWin32Header.h
igtl::MatrixToQuaternion
void IGTLCommon_EXPORT MatrixToQuaternion(Matrix4x4 &m, float *q)

Generated for OpenIGTLink by Doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2012