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

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

Introduction

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

The text is from its open source code.

Method

Objectclone()
Creates a new object of the same class and with the same contents as this object.
doubledistance(Point2D pt)
Returns the distance from this Point2D to a specified Point2D .
doubledistance(double px, double py)
Returns the distance from this Point2D to a specified point.
doubledistance(double x1, double y1, double x2, double y2)
Returns the distance between two points.
doubledistanceSq(Point2D pt)
Returns the square of the distance from this Point2D to a specified Point2D .
doubledistanceSq(double px, double py)
Returns the square of the distance from this Point2D to a specified point.
doubledistanceSq(double x1, double y1, double x2, double y2)
Returns the square of the distance between two points.
booleanequals(Object obj)
Determines whether or not two points are equal.
doublegetX()
Returns the X coordinate of this Point2D in double precision.
doublegetY()
Returns the Y coordinate of this Point2D in double precision.
voidsetLocation(double x, double y)
Sets the location of this Point2D to the specified double coordinates.
voidsetLocation(Point2D p)
Sets the location of this Point2D to the same coordinates as the specified Point2D object.
StringtoString()
Returns a string representation of the object.