NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
ndicapi_math.h
Go to the documentation of this file.
1 /*=======================================================================
2 
3  Program: NDI Combined API C Interface Library
4  Module: $RCSfile: ndicapi_math.h,v $
5  Creator: David Gobbi <dgobbi@atamai.com>
6  Language: C
7  Author: $Author: dgobbi $
8  Date: $Date: 2005/07/01 22:52:05 $
9  Version: $Revision: 1.2 $
10 
11 ==========================================================================
12 
13 Copyright (c) 2000-2005 Atamai, Inc.
14 
15 Use, modification and redistribution of the software, in source or
16 binary forms, are permitted provided that the following terms and
17 conditions are met:
18 
19 1) Redistribution of the source code, in verbatim or modified
20  form, must retain the above copyright notice, this license,
21  the following disclaimer, and any notices that refer to this
22  license and/or the following disclaimer.
23 
24 2) Redistribution in binary form must include the above copyright
25  notice, a copy of this license and the following disclaimer
26  in the documentation or with other materials provided with the
27  distribution.
28 
29 3) Modified copies of the source code must be clearly marked as such,
30  and must not be misrepresented as verbatim copies of the source code.
31 
32 THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS"
33 WITHOUT EXPRESSED OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO,
34 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
35 PURPOSE. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR OTHER PARTY WHO MAY
36 MODIFY AND/OR REDISTRIBUTE THE SOFTWARE UNDER THE TERMS OF THIS LICENSE
37 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES
38 (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA OR DATA BECOMING INACCURATE
39 OR LOSS OF PROFIT OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF
40 THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE
41 POSSIBILITY OF SUCH DAMAGES.
42 
43 =======================================================================*/
44 
49 #ifndef NDICAPI_MATH_H
50 #define NDICAPI_MATH_H 1
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 #include <stdarg.h>
57 
58 /*=====================================================================*/
86 void ndiRelativeTransform(const double a[8], const double b[8], double c[8]);
87 
91 void ndiTransformToMatrixf(const double trans[8], float matrix[16]);
95 void ndiTransformToMatrixd(const double trans[8], double matrix[16]);
96 
104 void ndiAnglesFromMatrixf(float angles[3], const float matrix[16]);
112 void ndiAnglesFromMatrixd(double angles[3], const double matrix[16]);
113 
119 void ndiCoordsFromMatrixf(float coords[3], const float matrix[16]);
120 
126 void ndiCoordsFromMatrixd(double coords[3], const double matrix[16]);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* NDICAPI_MATH_H */
133 
void ndiAnglesFromMatrixf(float angles[3], const float matrix[16])
const GLfloat * c
Definition: glew.h:14144
void ndiAnglesFromMatrixd(double angles[3], const double matrix[16])
void ndiRelativeTransform(const double a[8], const double b[8], double c[8])
GLdouble GLdouble GLdouble b
Definition: glew.h:7885
void ndiCoordsFromMatrixd(double coords[3], const double matrix[16])
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8272
void ndiTransformToMatrixd(const double trans[8], double matrix[16])
GLuint GLenum matrix
Definition: glew.h:12775
void ndiTransformToMatrixf(const double trans[8], float matrix[16])
GLenum GLuint coords
Definition: glew.h:6691
void ndiCoordsFromMatrixf(float coords[3], const float matrix[16])