|
XGraphicsglRotated(Double, Double, Double, Double) Method
|
The glRotated function multiplies the current matrix by a rotation matrix.
Namespace: Pixoneer.NXDL.NGRAssembly: NXDLgr (in NXDLgr.dll) Version: 2.0.3.38
Syntaxpublic void glRotated(
double degree,
double x,
double y,
double z
)
Parameters
- degree Double
- The angle of rotation, in degrees.
- x Double
- The x coordinate of a vector.
- y Double
- The y coordinate of a vector.
- z Double
- The z coordinate of a vector.
Return Value
This function does not return a value.
Remarks
The glRotated function computes a matrix that performs a counterclockwise rotation of angle degrees about the vector from the origin through the point (x, y, z).
The current matrix (see glMatrixMode) is multiplied by this rotation matrix, with the product replacing the current matrix. That is, if M is the current matrix and R is the translation matrix, then M is replaced with M*R.
If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glRotated is called are rotated. Use glPushMatrix and glPopMatrix to save and restore the unrotated coordinate system.
See Also