Functions
manipulatedFrame.cpp File Reference
#include "domUtils.h"
#include "manipulatedFrame.h"
#include "qglviewer.h"
#include "camera.h"
#include <cstdlib>
Include dependency graph for manipulatedFrame.cpp:

Go to the source code of this file.

Functions

static float projectOnBall (float x, float y)

Function Documentation

static float projectOnBall ( float  x,
float  y 
) [static]

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

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

Definition at line 503 of file manipulatedFrame.cpp.



octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Aug 27 2015 14:13:26