API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. Point2D.Double View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      Point2D
          Point2D.Double
Implements
 Serializable
Subclasses
Description
publicstatic class Point2D.Double
  The Double class defines a point specified in double precision.
See also:   
Constructors
public Point2D.Double ()
  Constructs and initializes a Point2D with coordinates (0, 0).
public Point2D.Double (double x, double y)
  Constructs and initializes a Point2D with the specified coordinates.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From Point2D]
  Creates a new object of the same class and with the same contents as this object.
public double distance (double px, double py) [Inherited From Point2D]
  Returns the distance from this Point2D to a specified point.
publicstatic double distance (double x1, double y1, double x2, double y2) [Inherited From Point2D]
  Returns the distance between two points.
public double distance (Point2D pt) [Inherited From Point2D]
  Returns the distance from this Point2D to a specified Point2D.
public double distanceSq (double px, double py) [Inherited From Point2D]
  Returns the square of the distance from this Point2D to a specified point.
publicstatic double distanceSq (double x1, double y1, double x2, double y2) [Inherited From Point2D]
  Returns the square of the distance between two points.
public double distanceSq (Point2D pt) [Inherited From Point2D]
  Returns the square of the distance from this Point2D to a specified Point2D.
public boolean equals (Object obj) [Inherited From Point2D]
  Determines whether or not two points are equal.
public double getX () [Specified in Point2D]
  Returns the X coordinate of this Point2D in double precision.
public double getY () [Specified in Point2D]
  Returns the Y coordinate of this Point2D in double precision.
public int hashCode () [Inherited From Point2D]
  Returns the hashcode for this Point2D.
public void setLocation (double x, double y) [Specified in Point2D]
  Sets the location of this Point2D to the specified double coordinates.
public void setLocation (Point2D p) [Inherited From Point2D]
  Sets the location of this Point2D to the same coordinates as the specified Point2D object.
public String toString ()
  Returns a String that represents the value of this Point2D.
Fields
Hide/Show inherited fields
public double x
  The X coordinate of this Point2D.
public double y
  The Y coordinate of this Point2D.
Nested Classes
  Point2D.Float
The Float class defines a point specified in float precision.
  Point2D.Double
The Double class defines a point specified in double precision.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar