Class Point64

java.lang.Object
com.github.micycle1.clipper2.core.Point64

public final class Point64 extends Object
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 Details

    • x

      public long x
    • y

      public long y
  • Constructor Details

    • Point64

      public Point64()
    • Point64

      public Point64(Point64 pt)
    • Point64

      public Point64(long x, long y)
    • Point64

      public Point64(double x, double y)
    • Point64

      public Point64(PointD pt)
    • Point64

      public Point64(Point64 pt, double scale)
    • Point64

      public Point64(PointD pt, double scale)
  • Method Details

    • setX

      public void setX(double x)
    • setY

      public void setY(double y)
    • set

      public void set(Point64 other)
      Set x,y of this point equal to another.
      Parameters:
      other -
    • opEquals

      public boolean opEquals(Point64 o)
    • opEquals

      public static boolean opEquals(Point64 lhs, Point64 rhs)
    • opNotEquals

      public boolean opNotEquals(Point64 o)
    • opNotEquals

      public static boolean opNotEquals(Point64 lhs, Point64 rhs)
    • opAdd

      public static Point64 opAdd(Point64 lhs, Point64 rhs)
    • opSubtract

      public static Point64 opSubtract(Point64 lhs, Point64 rhs)
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Point64 clone()
      Overrides:
      clone in class Object