public abstract class Point2D extends Object implements Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Point2D.Double |
static class |
Point2D.Float |
Modifier | Constructor and Description |
---|---|
protected |
Point2D() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
double |
distance(double px, double py) |
static double |
distance(double x1, double y1, double x2, double y2) |
double |
distance(Point2D p) |
double |
distanceSq(double px, double py) |
static double |
distanceSq(double x1, double y1, double x2, double y2) |
double |
distanceSq(Point2D p) |
boolean |
equals(Object obj) |
abstract double |
getX() |
abstract double |
getY() |
int |
hashCode() |
abstract void |
setLocation(double x, double y) |
void |
setLocation(Point2D p) |
public abstract double getX()
public abstract double getY()
public abstract void setLocation(double x, double y)
public void setLocation(Point2D p)
public static double distanceSq(double x1, double y1, double x2, double y2)
public double distanceSq(double px, double py)
public double distanceSq(Point2D p)
public static double distance(double x1, double y1, double x2, double y2)
public double distance(double px, double py)
public double distance(Point2D p)
Copyright © 1998–2018. All rights reserved.