IUF-SDK-3
Interventional Ultrasound Library
iufPosition.h
Go to the documentation of this file.
1 #ifndef IUFLIBRARY_IUFHLPOSITION_H
2 #define IUFLIBRARY_IUFHLPOSITION_H
3 
4 #include <iufTypes.h>
5 
6 // ADT
7 struct Iuf3DPosition;
8 typedef struct Iuf3DPosition Iuf3DPosition;
12 #define IU3DP_INVALID (iu3dp_t) NULL
13 
14 typedef struct Iuf2DPosition Iuf2DPosition;
16 #define IU2DP_INVALID (iu2dp_t) NULL
17 
21 iu2dp_t iuf2DPositionCreate
22 (
23  float x,
24  float z
25 );
26 
30 iu3dp_t iuf3DPositionCreate
31 (
32  float x, // along the transducer elements
33  float y, // perpendicular to the transducer elements
34  float z // depth direction
35 );
36 
39 (
40  iu3dp_t pos
41 );
42 
45 (
46  iu2dp_t pos
47 );
48 
53 (
54  iu2dp_t reference,
55  iu2dp_t actual
56 );
57 
62 (
63  iu3dp_t reference,
64  iu3dp_t actual
65 );
66 
67 #endif //IUFLIBRARY_IUFHLPOSITION_H
IUF_BOOL iuf2DPositionCompare(iu2dp_t reference, iu2dp_t actual)
compare two 2D positions with each other
iu2dp_t iuf2DPositionCreate(float x, float z)
Create a 2D position (x,z)
Definition: iufPosition.c:51
IUF_BOOL iuf3DPositionCompare(iu3dp_t reference, iu3dp_t actual)
compare two 3D positions with each other
iu3dp_t iuf3DPositionCreate(float x, float y, float z)
Create a 3D position (x,y,z)
Definition: iufPosition.c:35
float z
Definition: iufPositionPrivate.h:22
Position in 3D in meters.
Definition: iufPositionPrivate.h:10
Iuf3DPosition * iu3dp_t
Definition: iufPosition.h:11
Iuf2DPosition * iu2dp_t
Definition: iufPosition.h:15
void iuf2DPositionDelete(iu2dp_t pos)
Delete a 3D position.
Definition: iufPosition.c:73
void iuf3DPositionDelete(iu3dp_t pos)
Delete a 3D position.
Definition: iufPosition.c:64
float x
Definition: iufPositionPrivate.h:21
int IUF_BOOL
Definition: iufTypes.h:8
Position in 3D in meters.
Definition: iufPositionPrivate.h:19