Class Point64
java.lang.Object
com.github.micycle1.clipper2.core.Point64
The Point64 structure is used to represent a single vertex (or coordinate) in
a series that together make a path or contour (see Path64). Closed paths are
usually referred to as polygons, and open paths are referred to as lines or
polylines.
All coordinates are represented internally using integers as this is the only way to ensure numerical robustness. While the library also accepts floating point coordinates (see PointD), these will be converted into integers internally (using user specified scaling).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final booleaninthashCode()static Point64booleanstatic booleanbooleanstatic booleanopNotEquals(Point64 lhs, Point64 rhs) static Point64opSubtract(Point64 lhs, Point64 rhs) voidSet x,y of this point equal to another.voidsetX(double x) voidsetY(double y) final StringtoString()
-
Field Details
-
x
public long x -
y
public long y
-
-
Constructor Details
-
Point64
public Point64() -
Point64
-
Point64
public Point64(long x, long y) -
Point64
public Point64(double x, double y) -
Point64
-
Point64
-
Point64
-
-
Method Details
-
setX
public void setX(double x) -
setY
public void setY(double y) -
set
Set x,y of this point equal to another.- Parameters:
other-
-
opEquals
-
opEquals
-
opNotEquals
-
opNotEquals
-
opAdd
-
opSubtract
-
toString
-
equals
-
hashCode
public int hashCode() -
clone
-