RotatingPlot.Rotate

Prototypes

void Rotate( double dAngle, double dXAxis, double dYAxis, double dZAxis )

Parameters

double dAngle
The angle (in radians) through which to rotate the plot.

double dXAxis, dYAxis, dZAxis
This triplet of numbers defines a vector in three-dimensional space. The plot is rotated in the plane perpendicular to this vector.

Remarks

This method rotates a three-dimensional scatter plot by dAngle radians in the plane perpendicular to the vector (dXAxis, dYAxis, dZAxis).

Example
x = { 0 10 10  0 1 9 9 1 2 8 8 2 3 7 7 3 4 6 6 4 5 };
y = { 0  0 10 10 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6 5 };
z = { 0  0  0  0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 };
declare RotatingPlot plot;
plot = RotatingPlot.Create( "Pyramid", x, y, z, false );
plot.SetDrawingMode( SMOOTHCOLORMESH );
plot.ShowWindow();
do i = 1 to 64;
    plot.Rotate( 3.14159/32, -2, 1, 1 ); 
end;