-
Notifications
You must be signed in to change notification settings - Fork 1
/
mtm.h
80 lines (60 loc) · 1.76 KB
/
mtm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/******************************************************************************
*
* MTM Library API
*
*
******************************************************************************/
#ifndef MTM_H_
#define MTM_H_
/*****************************************************************************
* OS SPECIFIC DEFINITIONS
*****************************************************************************/
#ifdef _WIN32
/* MTM_EXPORT should *only* be defined when building the shared library */
#ifdef MTM_EXPORT
#define MTM_API __declspec(dllexport)
#else
#define MTM_API __declspec(dllimport)
#endif
/* defines calling convention */
#ifdef MTM_CDECL
#define MTM_CALL __cdecl
#else
#define MTM_CALL __stdcall
#endif
#else /* _WIN32 not defined. */
/* Define with no value on non-Windows OSes. */
#define MTM_API
#define MTM_CALL
#endif
/*****************************************************************************
* EXPORTED TYPES AND FUNCTIONS
*****************************************************************************/
/* Make sure functions are exported with C linkage under C++ compilers. */
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief rigid transformation
*/
struct transformation_t
{
//rotation matrix (row major)
double rot[3][3];
//translation vector (x,y,z)
double tra[3];
};
/**
* @brief description
* @param inarray1 ...
* @param size1 size of 1st array
* @param inarray2 ...
* @param size2 size of 2nd array
* @return nothing
*/
MTM_API void MTM_CALL do_great_things(transformation_t* inarray1, int size1,
transformation_t* inarray2, int size2);
#ifdef __cplusplus
}
#endif
#endif /* MTM_H */