NAME

world_to_obj - transform from world to object coord frame

PROTOTYPE

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

SEE ALSO:

define_world, obj_to_world

FILE

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