Function: rotateToViewCoordinates()
rotateToViewCoordinates(
imageData,viewPlaneNormal,viewUp):Point3[]
Transforms the cube corners to view coordinates (viewRight, viewUp, viewNormal). This is logically a rotation, but is implemented as a set of dot products with the three orthonormal basis vectors.
Parameters
• imageData: vtkImageData
The vtkImageData object used for index-to-world coordinate transformation and to get the extent
• viewPlaneNormal: Point3
The normal vector of the plane in world coordinates (assumed to be unit vector)
• viewUp: Point3
The up vector in world coordinates (assumed to be unit vector)
Returns
Point3[]
An array of Point3 objects representing corners in view coordinates [viewRight, viewUp, viewNormal]