DBreturnDatabaseOffset

Top  Previous  Next

Zero of the data bank deliver.

The co-ordinates delivered by the data bank are relative co-ordinates to any origin. This origin becomes with DBsetDatabaseOffset sedate and by DBreturnDatabaseOffset questioned. Absolute co-ordinates are generated by addition of offset and co-ordinates. If the offset is changed, while data are in the data bank, these are converted, so that the single co-ordinates keep steady absolute values. It is to be seen with the putting of the offset to the fact that no Überläufe take place. This can happen with the momentary implementing if the origin is put on a value far beyond the loaded plans if the plans own a fine resolution. The pointers x_off, y_off and z_off must point at variable be initialized so, because the result is written in these storage areas.

Parametre

root (PROOT) [IN]

The trading of the data bank whose offset should be changed.

x_off (STANDS IN *) [IN / OUT]

X co-ordinate (legal value) of the data bank offset. The variable must point by call at a variable of the type STANDS IN, because, otherwise, a memory mistake is to be expected.

y_off (STANDS IN *) [IN / OUT]

Y co-ordinate (north value) of the data bank offset. The variable must point by call at a variable of the type STANDS IN, because, otherwise, a memory mistake is to be expected.

z_off (STANDS IN *) [IN / OUT]

Z co-ordinate (height) of the data bank offset. The variable must point by call at a variable of the type STANDS IN, because, otherwise, a memory mistake is to be expected.

Result

---

Declaration

#include "database.h"

 

void DLLENTRY DBreturnDatabaseOffset (

PROOT root,

STAND-IN * x_off,

STAND-IN * y_off,

STAND-IN * z_off

);