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

Go to the source code of this file.

Functions

static qreal projectOnBall (qreal x, qreal y)
 

Function Documentation

static qreal projectOnBall ( qreal  x,
qreal  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 520 of file manipulatedFrame.cpp.



octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Wed Jun 5 2019 19:26:39