DADiSP Worksheet Functions > Function Categories > 3D and 4D Graphics > ROTATE3D

 

ROTATE3D

Purpose:

Rotates a 3D graph in the current Window.

Syntax:

ROTATE3D(xa, ya, za)

xa, ya, za

-

Reals, the angles for X, Y and Z rotation in degrees.

Example:

W1: xyz(gsin(200,.01,5),gcos(200,.01,5),1..200)

 

creates a 200 point spiral.

 

rotate3d(60, 45, 15)

 

rotates the spiral 60 degrees in the X direction, 45 degrees in the Y direction, and 15 degrees in the Z direction.

 

rtspin

 

Spins the spiral. Use rtspin(0) to halt spinning.

Remarks:

The PLOT3D or SETPLOTTYPE function must be performed on the table before ROTATE3D is used.

 

ROTATE3D sets the rotation matrix of a 3d surface by performing rotations first around the x-axis, then the y-axis, and finally the z-axis from a reference view of 0, 0, 0 which is perpendicular to the x-z plane (x is horizontal, z is vertical, and y is depth (invisible)).

 

The default orientation for 3D plots is 20, -15, 35 degrees.

 

SETRADIAN and SETDEGREE determine whether rotation is in radians or degrees. Defaults to degrees.

See Also:

MOUSEROTATE

PLOT3D

RTSPIN

SPIN