Packageorg.wiiflash
Classpublic final class IR

The IR class represents the data structure of the IR sensor from a Wiimote. An IR object can not be created manually. The only access to an IR object is by using the ir property of a Wiimote object.

See also

IR sensor description on wiili.org
org.wiiflash.Wiimote


Public Properties
 PropertyDefined by
  p1 : Boolean
[read-only] Flag that indicates if point 1 has been found.
IR
  p2 : Boolean
[read-only] Flag that indicates if point 2 has been found.
IR
  point1 : Point
[read-only] Point 1 as a Point object.
IR
  point2 : Point
[read-only] Point 2 as a Point object.
IR
  x1 : Number
[read-only] The x value of point 1.
IR
  x2 : Number
[read-only] The x value of point 2.
IR
  y1 : Number
[read-only] The y value of point 1.
IR
  y2 : Number
[read-only] The y value of point 2.
IR
Public Methods
 MethodDefined by
  
toString():String
Returns the string representation of the specified object.
IR
Property detail
p1property
p1:Boolean  [read-only]

Flag that indicates if point 1 has been found.

Implementation
    public function get p1():Boolean
p2property 
p2:Boolean  [read-only]

Flag that indicates if point 2 has been found.

Implementation
    public function get p2():Boolean
point1property 
point1:Point  [read-only]

Point 1 as a Point object.

Implementation
    public function get point1():Point
point2property 
point2:Point  [read-only]

Point 2 as a Point object.

Implementation
    public function get point2():Point
x1property 
x1:Number  [read-only]

The x value of point 1.

Implementation
    public function get x1():Number
x2property 
x2:Number  [read-only]

The x value of point 2.

Implementation
    public function get x2():Number
y1property 
y1:Number  [read-only]

The y value of point 1.

Implementation
    public function get y1():Number
y2property 
y2:Number  [read-only]

The y value of point 2.

Implementation
    public function get y2():Number
Method detail
toString()method
public function toString():String

Returns the string representation of the specified object.

Returns
String — A string representation of the object.