public class Point extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Point() |
Point(double x, double y) |
Point(int x, int y) |
Point(Point p) |
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(Point p) |
double |
distanceSq(double px, double py) |
static double |
distanceSq(double x1, double y1, double x2, double y2) |
double |
distanceSq(Point p) |
boolean |
equals(Object obj) |
Point |
getLocation() |
double |
getX() |
double |
getY() |
int |
hashCode() |
void |
move(double x, double y) |
void |
setLocation(double x, double y) |
void |
setLocation(int x, int y) |
void |
setLocation(Point p) |
String |
toString() |
void |
translate(double dx, double dy) |
public Point()
public Point(int x, int y)
public Point(double x, double y)
public Point(Point p)
public double getX()
public double getY()
public Point getLocation()
public void setLocation(Point p)
public void setLocation(int x, int y)
public void setLocation(double x, double y)
public void move(double x, double y)
public void translate(double dx, double dy)
public static double distanceSq(double x1, double y1, double x2, double y2)
public double distanceSq(double px, double py)
public double distanceSq(Point p)
public static double distance(double x1, double y1, double x2, double y2)
public double distance(double px, double py)
public double distance(Point p)
Copyright © 1998–2020 iText Group NV. All rights reserved.