Package com.itextpdf.kernel.geom
Class Point
java.lang.Object
com.itextpdf.kernel.geom.Point
- All Implemented Interfaces:
-
Cloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
double
distance
(double px, double py) static double
distance
(double x1, double y1, double x2, double y2) double
double
distanceSq
(double px, double py) static double
distanceSq
(double x1, double y1, double x2, double y2) double
distanceSq
(Point p) boolean
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) toString()
void
translate
(double dx, double dy)
-
Field Details
-
x
public double x -
y
public double y
-
-
Constructor Details
-
Point
public Point() -
Point
public Point(int x, int y) -
Point
public Point(double x, double y) -
Point
-
-
Method Details
-
equals
-
toString
-
getX
public double getX() -
getY
public double getY() -
getLocation
-
setLocation
-
setLocation
public void setLocation(int x, int y) -
setLocation
public void setLocation(double x, double y) -
move
public void move(double x, double y) -
translate
public void translate(double dx, double dy) -
hashCode
public int hashCode() -
distanceSq
public static double distanceSq(double x1, double y1, double x2, double y2) -
distanceSq
public double distanceSq(double px, double py) -
distanceSq
-
distance
public static double distance(double x1, double y1, double x2, double y2) -
distance
public double distance(double px, double py) -
distance
-
clone
-