|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ed.inf.sdp2012.group7.vision.VisionTools
public class VisionTools
Contains the tools we use for converting stuff
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 |
---|
public VisionTools()
Method Detail |
---|
public static int cmToPixels(float cm)
cm
- The number of cm to convert
public static float pixelsToCM(double pixelValue)
pixelValue
- Number of pixels to convert
public static float pixelsToCM(int pixelValue)
public static double convertAngle(double a)
a
- The output of atan2
public static double convertAngleBack(double a)
a
- The output of convertAngle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |