Go to the source code of this file.
|
| 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 More...
|
| |
◆ Iuf3DAngle
| Data Fields |
|
float |
phi |
rotation round x axis */ |
|
float |
theta |
rotation around y axis */ |
◆ IU3DA_INVALID
| #define IU3DA_INVALID (iu3da_t) NULL |
◆ 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
◆ iuf3DAngleCompare()
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
-
| reference | a 3D angle to compare |
| actual | a 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
-
| theta | the rotation over the y-axis in radians |
| phi | the 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
-
| angle | the angle to be removed |