NAME

obj_to_world - transform from object to world coord frame

PROTOTYPE

unitptr obj_to_world( int n, unitptr host)

ARGUMENTS

int n
number of points to be transformed
unitptr host
host unit for newly created instance

RETURN VALUE:

unitptr u:
pointer to newly created unit

INTERFACE OF CREATED UNIT:

in_0[3]:
object coordinates of first point
...
in_n-1[3]:
object coordinates of last point
out_0[3]:
world coordinates of first point
...
out_n-1[3]:
world coordinates of last point
If n==0::
out_0[16]:
object coordinate frame (as a homogeneous 4x4 matrix) relative to world coordinates. Columns 0-2 are unit vectors along object x,y and z-axis in world coordinates. Column 3 is origin of object coord frame in world coordinates.

SEE ALSO:

define_world, world_to_obj

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../foldersrc/nst_solid.c