Main Page | Class Hierarchy | Compound List | All functions | Search

manipulatedFrame.cpp File Reference


Functions

float projectOnBall (const float x, const float y)

Function Documentation

float projectOnBall const float  x,
const float  y
[static]
 

Returns "pseudo-distance" from (x,y) to ball of radius size.

  • for a point inside the ball, it is proportionnal to the euclidean distance to the ball
  • for a point outside the ball, it is proportionnal to the inverse of this distance (tends to zero) on the ball, the function is continuous.


Generated on Wed Feb 11 17:22:05 2004 for libQGLViewer by doxygen 1.3.3