IUF-SDK-3
Interventional Ultrasound Library
iuf3DAngle.c File Reference
#include <math.h>
#include <stdlib.h>
#include <iuf.h>
#include <iuf3DAnglePrivate.h>

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...
 
int iuf3DAngleSave (iu3da_t angle, hid_t handle)
 
iu3da_t iuf3DAngleLoad (hid_t handle)
 

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

◆ iuf3DAngleLoad()

iu3da_t iuf3DAngleLoad ( hid_t  handle)

◆ iuf3DAngleSave()

int iuf3DAngleSave ( iu3da_t  angle,
hid_t  handle 
)