lejos.robotics
Class RangeReading

java.lang.Object
  extended by lejos.robotics.RangeReading

public class RangeReading
extends Object

Represent a single range reading


Constructor Summary
RangeReading(float angle, float range)
          Create the reading
 
Method Summary
 float getAngle()
          Get the angle of the range reading
 float getRange()
          Get the range reading
 boolean invalidReading()
          Test if reading is invalid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeReading

public RangeReading(float angle,
                    float range)
Create the reading

Parameters:
angle - the angle relative to the heading
range - the range reading
Method Detail

getRange

public float getRange()
Get the range reading

Returns:
the range reading

getAngle

public float getAngle()
Get the angle of the range reading

Returns:
the angle relative to the robot heading

invalidReading

public boolean invalidReading()
Test if reading is invalid

Returns:
true iff the reading is invalid