Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void OglGui::Carousel3D::RotateToNearest ( int  ms = 500  )  [inline]

Definition at line 186 of file Carousel3D.h.

References Clamp360(), mCenterRotY, mOglViews, and RotateToSpike().

Referenced by DisplayFunc().

00187     {
00188         Clamp360(mCenterRotY);
00189         int     nrOfViews = mOglViews.size();
00190         float   spikes    = 360.f / nrOfViews;
00191         float   n         = floor(0.5f + mCenterRotY / spikes);
00192         int     s         = abs(n-nrOfViews);
00193         RotateToSpike(s);
00194     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:12 2011 for ImpalaSrc by  doxygen 1.5.1