VJViewspaceUtil implements viewspace utility methods, that can be used to
relate a volume in a transformation matrix to the coordinates of that volume in viewspace.
Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Calculate minimum and maximum extents in xyz viewspace coordinates of volume v.
Transform the eight corners of the dataset from
objectspace into view space using the transformation
matrix m, which converts from objectspace into viewspace.
These eight new points are the
minimum and maximum i,j and k values, in view space, where voxels
are present. It is an upper bound for where to cast rays from in viewspace.
v - the volume to be rendered.
m - the transformation matrix translating from object space to viewspace.
an int containing min [..] and max [..] for the i,j,k axes.