Package lejos.robotics
Class RangeReading
- java.lang.Object
-
- lejos.robotics.RangeReading
-
public class RangeReading extends java.lang.ObjectRepresent a single range reading
-
-
Constructor Summary
Constructors Constructor Description RangeReading(float angle, float range)Create the reading
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAngle()Get the angle of the range readingfloatgetRange()Get the range readingbooleaninvalidReading()Test if reading is invalid
-
-
-
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
-
-