Explanation:
The function rotateAroundLineDegree is part
of the Transform class in CP's "vs" package. It rotates
an object about a given axis by a given angle in degrees.
public void rotateAroundLineDegree(float R[], float P[],int mode);
Parameters :
- float R[4] : the first three elements are the x,y,z components of
the axis of rotation. The fourth is the desired rotation angle in degrees.
- float P[3] : gives a point through which the axis passes. Thus
between R and P we can specify an axis at an arbitrary orientation
and translation about whihc to rotate the object.
- int mode : there are two modes - modeAbsolute (which means R[3] is an
absolute angle) and modeRelative (which means it is relative to the current
orientation).
For more details about related functions see java-e.htm in the doc directory
of your CP folder.