Java java.awt.geom Point2D.Double fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom Point2D.Double fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom Point2D.Double.

The text is from its open source code.

Subclass

java.awt.geom.Point2D.Double has subclasses.
Click this link to see all its subclasses.

Constructor

Double(double x, double y)
Constructs and initializes a Point2D with the specified coordinates.
Point2D.Double

Method

doubledistance(Point2D pt)
Returns the distance from this Point2D to a specified Point2D .
doubledistanceSq(Point2D pt)
Returns the square of the distance from this Point2D to a specified Point2D .
doublegetX()
Returns the X coordinate of this Point2D in double precision.
doublegetY()
Returns the Y coordinate of this Point2D in double precision.
voidsetLocation(Point2D p)
Sets the location of this Point2D to the same coordinates as the specified Point2D object.
voidsetLocation(double x, double y)
Sets the location of this Point2D to the specified double coordinates.
StringtoString()
Returns a string representation of the object.