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
20namespace igtl
21{
22
23typedef float Matrix4x4[4][4];
24
27
30
32void IGTLCommon_EXPORT PrintVector3(float x, float y, float z);
33
36
38void IGTLCommon_EXPORT PrintVector4(float x, float y, float z, float w);
39
43
47
50void IGTLCommon_EXPORT Cross(float *a, float *b, float *c);
51
54
55}
56
57#endif // __igtlMath_h
58
59
60
#define IGTLCommon_EXPORT
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
void IGTLCommon_EXPORT MatrixToQuaternion(Matrix4x4 &m, float *q)
void IGTLCommon_EXPORT PrintVector4(float v[4])
Prints out a 4-element vector on the standard output.
void IGTLCommon_EXPORT QuaternionToMatrix(float *q, Matrix4x4 &m)
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.
void IGTLCommon_EXPORT PrintVector3(float v[3])
Prints out a 3-element vector on the standard output.
float Matrix4x4[4][4]
Definition igtlMath.h:23
void IGTLCommon_EXPORT Cross(float *a, float *b, float *c)

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