Package lejos.robotics.geometry
Class Point2D.Float
- java.lang.Object
-
- lejos.robotics.geometry.Point2D
-
- lejos.robotics.geometry.Point2D.Float
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class lejos.robotics.geometry.Point2D
Point2D.Double, Point2D.Float
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()Get the x coordinate as a doubledoublegetY()Get the y coordinate as a doublevoidsetLocation(double x, double y)Set the location of this Point2D using double coordinatesvoidsetLocation(float x, float y)Set the location of the pointjava.lang.StringtoString()Represent the Point2SD.Float as a String-
Methods inherited from class lejos.robotics.geometry.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, setLocation
-
-
-
-
Method Detail
-
getX
public double getX()
Description copied from class:Point2DGet the x coordinate as a double
-
getY
public double getY()
Description copied from class:Point2DGet the y coordinate as a double
-
setLocation
public void setLocation(double x, double y)Description copied from class:Point2DSet the location of this Point2D using double coordinates- Specified by:
setLocationin classPoint2D- Parameters:
x- the new x coordinatey- the new y coordinate
-
setLocation
public void setLocation(float x, float y)Set the location of the point- Parameters:
x- the new x coordinatey- the new y coordinate
-
toString
public java.lang.String toString()
Represent the Point2SD.Float as a String- Overrides:
toStringin classjava.lang.Object
-
-