NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
polaris_math.h
Go to the documentation of this file.
1 /*=======================================================================
2 
3  Program: NDI Combined API C Interface Library
4  Module: $RCSfile: polaris_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:06 $
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 POLARIS_MATH_H
50 #define POLARIS_MATH_H 1
51 
52 #include "ndicapi_math.h"
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 #include <stdarg.h>
59 
60 /*=====================================================================*/
88 static void plRelativeTransform(const double a[8], const double b[8], double c[8]) {
89  ndiRelativeTransform(a, b, c); }
90 
94 static void plTransformToMatrixf(const double trans[8], float matrix[16]) {
95  ndiTransformToMatrixf(trans, matrix); }
96 
100 static void plTransformToMatrixd(const double trans[8], double matrix[16]) {
101  ndiTransformToMatrixd(trans, matrix); }
102 
110 static void plAnglesFromMatrixf(float angles[3], const float matrix[16]) {
111  ndiAnglesFromMatrixf(angles, matrix); }
112 
120 static void plAnglesFromMatrixd(double angles[3], const double matrix[16]) {
121  ndiAnglesFromMatrixd(angles, matrix); }
122 
128 static void plCoordsFromMatrixf(float coords[3], const float matrix[16]) {
129  ndiCoordsFromMatrixf(coords, matrix); }
130 
136 static void plCoordsFromMatrixd(double coords[3], const double matrix[16]) {
137  ndiCoordsFromMatrixd(coords, matrix); }
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* POLARIS_MATH_H */
144 
static void plTransformToMatrixd(const double trans[8], double matrix[16])
Definition: polaris_math.h:100
void ndiAnglesFromMatrixf(float angles[3], const float matrix[16])
static void plCoordsFromMatrixf(float coords[3], const float matrix[16])
Definition: polaris_math.h:128
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
static void plCoordsFromMatrixd(double coords[3], const double matrix[16])
Definition: polaris_math.h:136
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])
static void plAnglesFromMatrixf(float angles[3], const float matrix[16])
Definition: polaris_math.h:110
static void plAnglesFromMatrixd(double angles[3], const double matrix[16])
Definition: polaris_math.h:120
static void plTransformToMatrixf(const double trans[8], float matrix[16])
Definition: polaris_math.h:94
static void plRelativeTransform(const double a[8], const double b[8], double c[8])
Definition: polaris_math.h:88
GLenum GLuint coords
Definition: glew.h:6691
void ndiCoordsFromMatrixf(float coords[3], const float matrix[16])