uk.ac.ed.inf.sdp2012.group7.vision
Class VisionTools

java.lang.Object
  extended by uk.ac.ed.inf.sdp2012.group7.vision.VisionTools

public class VisionTools
extends java.lang.Object

Contains the tools we use for converting stuff

Author:
Dale Myers

Constructor Summary
VisionTools()
           
 
Method Summary
static int cmToPixels(float cm)
          Convert between cm and pixels
static double convertAngle(double a)
          Nothing Used to convert from output of atan2 to the agreed upon system Current system is for vision to just use atan2 output and other systems to do what they want with that.
static double convertAngleBack(double a)
          Presumably not needed anymore now we are just using atan2
static float pixelsToCM(double pixelValue)
          Convert between pixels and cm
static float pixelsToCM(int pixelValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisionTools

public VisionTools()
Method Detail

cmToPixels

public static int cmToPixels(float cm)
Convert between cm and pixels

Parameters:
cm - The number of cm to convert
Returns:
Number of pixels

pixelsToCM

public static float pixelsToCM(double pixelValue)
Convert between pixels and cm

Parameters:
pixelValue - Number of pixels to convert
Returns:
Number of cms

pixelsToCM

public static float pixelsToCM(int pixelValue)

convertAngle

public static double convertAngle(double a)
Nothing Used to convert from output of atan2 to the agreed upon system Current system is for vision to just use atan2 output and other systems to do what they want with that.

Parameters:
a - The output of atan2
Returns:
a

convertAngleBack

public static double convertAngleBack(double a)
Presumably not needed anymore now we are just using atan2

Parameters:
a - The output of convertAngle
Returns:
a