wiiusej.values
Class IRSource

java.lang.Object
  extended by wiiusej.values.IRSource

public class IRSource
extends java.lang.Object

Class used for IR sources.

Author:
guiguito

Field Summary
private  short rx
           
private  short ry
           
private  short size
           
private  int x
           
private  int y
           
 
Constructor Summary
IRSource(int xx, int yy, short rxx, short ryy, short si)
          Build an IR source with all details.
 
Method Summary
 short getRx()
          Return raw X coordinate (0-1023).
 short getRy()
          Return raw Y coordinate (0-1023).
 short getSize()
          Return size of the IR dot (0-15).
 int getX()
          Return x interpolated coordinates.
 int getY()
          Return y interpolated coordinates.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

private int x

y

private int y

rx

private short rx

ry

private short ry

size

private short size
Constructor Detail

IRSource

public IRSource(int xx,
                int yy,
                short rxx,
                short ryy,
                short si)
Build an IR source with all details.

Parameters:
xx - xx interpolated coordinates.
yy - yy interpolated coordinates.
rxx - raw X coordinate (0-1023).
ryy - raw Y coordinate (0-1023).
si - size of the IR dot (0-15).
Method Detail

getX

public int getX()
Return x interpolated coordinates.

Returns:
the x

getY

public int getY()
Return y interpolated coordinates.

Returns:
the y

getRx

public short getRx()
Return raw X coordinate (0-1023).

Returns:
the rx

getRy

public short getRy()
Return raw Y coordinate (0-1023).

Returns:
the ry

getSize

public short getSize()
Return size of the IR dot (0-15).

Returns:
the size

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object