IUF-SDK-3
Interventional Ultrasound Library
iuf3DAngle.h File Reference

Go to the source code of this file.

Data Structures

struct  Iuf3DAngle
 

Macros

#define IU3DA_INVALID   (iu3da_t) NULL
 

Typedefs

typedef Iuf3DAngleiu3da_t
 3D elements are considered block shaped and aligned (z-angle rotation=0) and can rotate in theta (y-axis) and phi (over the x-axis) angles are in radians More...
 

Functions

iu3da_t iuf3DAngleCreate (float theta, float phi)
 create a 2-axis rotation in 3D space More...
 
int iuf3DAngleDelete (iu3da_t angle)
 Delete a 3D angle. More...
 
int iuf3DAngleCompare (iu3da_t reference, iu3da_t actual)
 Compare two 3D angles, the order of arguments does not matter. More...
 

Data Structure Documentation

◆ Iuf3DAngle

struct Iuf3DAngle
Data Fields
float phi rotation round x axis */
float theta rotation around y axis */

Macro Definition Documentation

◆ IU3DA_INVALID

#define IU3DA_INVALID   (iu3da_t) NULL

Typedef Documentation

◆ iu3da_t

typedef Iuf3DAngle* iu3da_t

3D elements are considered block shaped and aligned (z-angle rotation=0) and can rotate in theta (y-axis) and phi (over the x-axis) angles are in radians

Function Documentation

◆ iuf3DAngleCompare()

int iuf3DAngleCompare ( iu3da_t  reference,
iu3da_t  actual 
)

Compare two 3D angles, the order of arguments does not matter.

Returns
returns IUF_TRUE in case the angles are equal or IUF_FALSE in case they differ.
Parameters
referencea 3D angle to compare
actuala 3D angle to compare with

◆ iuf3DAngleCreate()

iu3da_t iuf3DAngleCreate ( float  theta,
float  phi 
)

create a 2-axis rotation in 3D space

Returns
returns an allocated and initialized 3D angle
Parameters
thetathe rotation over the y-axis in radians
phithe rotation over the x-axis in radians

◆ iuf3DAngleDelete()

int iuf3DAngleDelete ( iu3da_t  angle)

Delete a 3D angle.

Returns
returns IUF_ERR_VALUE in case this fails or IUF_E_OK in case of success
Parameters
anglethe angle to be removed