#include "mitkPointSetGLMapper2D.h"
#include "mitkPointSet.h"
#include "mitkPlaneGeometry.h"
#include "mitkColorProperty.h"
#include "mitkProperties.h"
#include "vtkLinearTransform.h"
#include "mitkStringProperty.h"
#include "mitkVtkPropRenderer.h"
#include "mitkGL.h"
Go to the source code of this file.
Functions | |
static bool | makePerpendicularVector2D (const mitk::Vector2D &in, mitk::Vector2D &out) |
static bool makePerpendicularVector2D | ( | const mitk::Vector2D & | in, |
mitk::Vector2D & | out | ||
) | [static] |
Definition at line 76 of file mitkPointSetGLMapper2D.cpp.
Referenced by mitk::PointSetGLMapper2D::Paint().
{ if((fabs(in[0])>0) && ( (fabs(in[0])>fabs(in[1])) || (in[1] == 0) ) ) { out[0]=-in[1]/in[0]; out[1]=1; out.Normalize(); return true; } else if(fabs(in[1])>0) { out[0]=1; out[1]=-in[0]/in[1]; out.Normalize(); return true; } else return false; }