Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlMath.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Open IGT Link Library
4
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlMath.h $
5
Language: C++
6
Date: $Date: 2011-03-24 00:08:23 -0400 (Thu, 24 Mar 2011) $
7
Version: $Revision: 7354 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
11
This software is distributed WITHOUT ANY WARRANTY; without even
12
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
PURPOSE. See the above copyright notices for more information.
14
15
=========================================================================*/
16
17
#ifndef __igtlMath_h
18
#define __igtlMath_h
19
20
#include "
igtlWin32Header.h
"
21
22
namespace
igtl
23
{
24
25
typedef
float
Matrix4x4
[4][4];
26
27
void
IGTLCommon_EXPORT
PrintMatrix
(
igtl::Matrix4x4
&matrix);
28
void
IGTLCommon_EXPORT
PrintVector3
(
float
v[3]);
29
void
IGTLCommon_EXPORT
PrintVector3
(
float
x,
float
y,
float
z);
30
void
IGTLCommon_EXPORT
PrintVector4
(
float
v[4]);
31
void
IGTLCommon_EXPORT
PrintVector4
(
float
x,
float
y,
float
z,
float
w);
32
void
IGTLCommon_EXPORT
QuaternionToMatrix
(
float
* q,
Matrix4x4
& m);
33
void
IGTLCommon_EXPORT
MatrixToQuaternion
(
Matrix4x4
& m,
float
* q);
34
void
IGTLCommon_EXPORT
Cross
(
float
*a,
float
*b,
float
*c);
35
void
IGTLCommon_EXPORT
IdentityMatrix
(
igtl::Matrix4x4
&matrix);
36
37
}
38
39
#endif // __igtlMath_h
40
41
42
43
Generated at Thu Mar 20 2014 16:32:06 for OpenIGTLink by
1.8.1.2 written by
Dimitri van Heesch
, © 1997-2000