Click or drag to resize
XDL

XGraphicsglRotated Method (Double, Double, Double, Double)

The glRotated function multiplies the current matrix by a rotation matrix.

Namespace:  Pixoneer.NXDL.NGR
Assembly:  NXDLgr (in NXDLgr.dll) Version: 1.2.817.72
Syntax
C#
public void glRotated(
	double degree,
	double x,
	double y,
	double z
)

Parameters

degree
Type: SystemDouble
The angle of rotation, in degrees.
x
Type: SystemDouble
The x coordinate of a vector.
y
Type: SystemDouble
The y coordinate of a vector.
z
Type: SystemDouble
The z coordinate of a vector.

Return Value

Type: 
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